2008年10月20日星期一

Why unbind of jQuery does not work

I need a javascript function to unbind "onclick" operation for some div elements like this:


Click me


and then click and unbind:
Unbind Click



This code cannot unbind the onclick event, it seems that the unbind could only unbind the events binded by jQuery, not events coded directly in HTML.

I hope you can understand this.



没有评论: