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

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -