javascript - jQuery: Binding same event to window and another element -



javascript - jQuery: Binding same event to window and another element -

how bind same event window , on element @ 1 go. tried this, not work me:

$('window, #someid').bind('click', dosomething);

$('#someid').add(window).bind('click', dosomething);

should it.

javascript jquery bind

Comments

Popular posts from this blog

.net - Transaction locking an Insert statement -

clojure - Best way to lazily collapse multiple contiguous items of a sequence into a single item -

remove Repeat values from a list in haskell -