Jquery save html with value in file
<p>I have to save the contents of a div inside a text file, the div contains the input form that can be modified.
Can I save the html of the div with the field value changed?
ex:</p>

<pre><code>&lt;div id="myDiv"&gt;
  &lt;input id="myInput" value="" /&gt;
&lt;/div&gt;
</code></pre>

<p>after I edit the input on my html page, I insert "myChangedValue" inside the input field.
When I do $("myDiv").html() the content have the value field empty, and the structure of my txt file is:</p>

<pre><code>&lt;div id="myDiv"&gt;
  &lt;input id="myInput" value="" /&gt;
&lt;/div&gt;
</code></pre>

<p>I expected:</p>

<pre><code>&lt;div id="myDiv"&gt;
  &lt;input id="myInput" value="myChangedValue" /&gt;
&lt;/div&gt;
</code></pre>

<p>tnks</p>
