Copy Onclick event of an element
<p>hi to all i have an interesting question </p>

<p>is it possible to copy onclick event of an element like this</p>

<pre><code>$('#ElementId').attr('OldOnClick',$('#ElementId').attr('OnClick'));
</code></pre>

<p>Please guide me if there is any way of doing this.</p>

<p>i am trying to disable click event of all elements present on form at some point and on some other point i have to recover them so i am trying to save their <code>onclick</code> with other attribute name</p>
