title: Set the default value of an input text
body: <p>my requirement is to save the entire "html" inside a div, but when i load an "html" with text fields to a div and then editing the value of the text box, the newly set value doesn't reflect in the core "html". I tried to inspect the value with fire bug and it remains the  same or no value at all.With "jquery" i tried  to set attribute but no attribute name value is created. how can i set the value of text fields and then get that "html" with the newly set value.</p>
  
  <p>here is my html </p>
  
  <pre><code>&lt;div class="sub_input_box"&gt;
    &lt;input type="text" / class="boreder_line"&gt;
    &lt;input type="text" id="txt" value=""/&gt;
    &lt;input type="hidden" id="hid" /&gt;
    &lt;div class="clear"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and the jquery i used to set attribute</p>
  
  <p><code>$("#txt").attr("value", "some value");</code></p>