How do I set the default value of an input box using jQuery?
<p>I want to change the default value of an input box such that when I rest the form the value remains..
I have the following code that sets a value using JQuery but as reset is pressed,value becomes the initial one.</p>

<pre><code>&lt;form&gt;
 Email: &lt;input type="text" id="email" value="old value" /&gt;
 &lt;input type="reset"  value="reset" /&gt;
 &lt;/form&gt;

 $(function(){

        $("#email").val("New value");
    });
</code></pre>
