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
Post a Comment