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

ios - Fragment Shader GLSL for texture, color and texture/color -

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -