title: Why does jQuery insert value attribute in HTML, yet document.getElementById(...).value does not? Is there a workaround?
body: <p>If I use this line in JavaScript,</p>
  
  <pre><code>$("#formfieldid").attr("value", "foobar");
  </code></pre>
  
  <p>It inserts the value attribute into the HTML such that it'll appear when viewing the source.  </p>
  
  <p>If I use this line in JavaScript,</p>
  
  <pre><code>document.getElementById("formfieldid").value = "foobar";
  </code></pre>
  
  <p>The value of the field will be foobar, but it won't show up under view source.</p>
  
  <p>What I want to do is have the attribute NOT show up under view source and use jQuery.  Does there exist an equivalent in jQuery?</p>