title: Find default value of field after page refresh
body: <p>I'm looking for a way, with jQuery, to get the default value of an input field (in an HTML field).</p>
  
  <p>Seems simple enough. Just calling <code>$("#id-of-field").attr('value')</code> should return the value I'm wanting right?</p>
  
  <p>Thing is, if the value is <code>Foo</code>, when I load the page, it returns <code>Foo</code>. No problem there. But if I write <code>Bar</code> in the field, then reload (not submit) the page, <code>$("#id-of-field").attr('value')</code> will return me <code>Bar</code>, even if in the source code, the value attribute of the field is still <code>Foo</code>.</p>
  
  <p>That makes validation of my form sticky, because when I get my default values to ignore them if the field has not been filled, I could get a real value in the mix of "Values to be ignored".</p>
  
  <p>FYI, I can't put in the values manually, since the form is dynamic, and cannot query directly the database because it's a Wordpress Website.</p>