开发者

jQuery view bound events in debugger IE

I have a problem with binding events and I need to see if an event is bound on any element. For example when I ha开发者_如何学Pythonve this code:

jQuery(selector).bind('load.background', function() { callback.call(this, bgPath);});

Where is it shown in debugger? I need to see it in IE developer tools, and there when I see my variable in watches it look like on this image:

jQuery view bound events in debugger IE

When I look in the Events tree (marked with small lightning) there is null as load value (even in case callback call succeed)

So where can I see if and what is bound on any element?

EDIT: Even in Chrome debugger is it null

jQuery view bound events in debugger IE


You are not using jQuery selectors correctly. What is "load" refering to in your selector?

If it is the id of an element then the correct selector will be

jQuery(selector).bind('#load.background', function() { callback.call(this, bgPath);});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜