jQuery partial form reset to initial value
<p>I have a form that has a bunch of input type="text" boxes that are loaded with values from a database. I can then change these values and POST. This form has a few subsections that I have boxed in with framesets. What I would like to do is give the user a button to undo any changes they have made to inputs in a particular fameset. I know I can use:</p>

<pre><code>$('#myForm').get(0).reset();
</code></pre>

<p>To reset the entire form. I was hoping that I could do something like:</p>

<pre><code>$('#myForm #myFrameset').get(0).reset();
</code></pre>

<p>or</p>

<pre><code>$('#myForm input').get(0).reset();
</code></pre>

<p>to reset the input boxes within a particular frameset. However, (valuable lesson of the day for this noob) .reset() is only a form selector so when I ('#myForm #myFrameset') I am selecting an element and not a form. </p>

<p>I don't want to reload from the database because it seems to me that the data I want is there. I just can't figure out how to access it without resetting the entire form. I'm going to work on a function where I store the value in the input placeholder and set the input value to the placeholder value on reset button click. It should work but I'm wondering is there a simpler way to do this in jQuery? Is there a better way to do this in general?</p>
