How to remove existing and add onsubmit in form using jquery
<p>I have the form like below,</p>

<pre><code>&lt;form onsubmit="return existingfunc()" method="post" name="search" id="myForm"&gt;
...
&lt;input type="submit" value="Search" title="Search"&gt;
&lt;/form&gt;
</code></pre>

<p>I can change form name when the form is loaded using <code>"$('#myForm').attr('name','add')"</code>.Also
Using jquery, Is it possible to change onsubmit function when form is called?</p>
