I have some HTML with an onclick attribute. I want to override that attribute using jQuery. Is there any way to remove the click handler using jQuery? Using unb
onclick
$("#theElement")[0].onclick = function() { whatever(); }; // -- or -- $("#theElement")[0].onclick = null;
It's not that jQuery would make the standard DOM functions and properties go away. ;-)