It seems that unbind() will only remove event handlers that were attached to elements by jQuery. The following does not remove the event handler specified in the element's attributes.
Behaviour is repeatable for several event types on Fx2.0.0.2 and IE6.0 -- bug, missing feature or missing documentation? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv='content-type' content='text/html; charset=ISO-8859-1' /> <title>Tester</title> <script src='/jquery-uncompressed.js' type='text/javascript'></script> <script type='text/javascript'><!-- $(document).ready(function() { $("#testButton") .html("ready to test"); }) function test() { $("#testButton").unbind("click").html("Tested already"); } // --></script> </head> <body> <button id="testButton" onclick="test()">Test me</button> </body> </html> ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/