jQuery - Remove onclick event handler defined as element attribute I noticed people sometimes end up stunned when trying to use jQuery to overwrite / remove an onclick handler hard coded as an HTML element attribute, like so:
Click me to alert mooh!
Defining click handlers as inline attributes is generally considered bad practice nowadays, but sometimes we run into this when having to adjust other people's legacy code.Read full article from Remove onclick event handler defined as element attribute - jQuery
No comments:
Post a Comment