Clear/Remove JavaScript Event Handler

Posted by Jordan Terrell on Stack Overflow See other posts from Stack Overflow or by Jordan Terrell
Published on 2009-04-29T19:38:32Z Indexed on 2010/06/09 22:52 UTC
Read the original article Hit count: 640

Greetings all - Given the following HTML fragment:

<form id="aspnetForm" onsubmit="alert('On Submit Run!'); return true;">

I need to remove/clear the handler for the onsubmit event and register my own using jQuery or any other flavor of JavaScript usage. Anyone know how to do this?

Thanks - Jordan

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html