title: Can I determine what the default state of a checkbox was at pageload (or what value reset() reset it to.)
body: <p>When an html page is loaded, different input elements can be initialed as they are declared in the HTML.   If the user changes some of the input values and then executes a reset() on the form, then the form is reset to it's initial loaded state.</p>
  
  <p>My question is, can I determine that "initial element state was" using javascript (ideally in a cross browser way?)</p>
  
  <p>Ideally like this (where ???? is what I don't know how to do.)</p>
  
  <pre><code>&lt;input type='checkbox' id='chkbox' checked /&gt;
  
  &lt;script&gt;
  alert('The initial state was ' ???? );
  $('chkbox').checked = true
  alert('The initial state was ' ???? );
  &lt;/script&gt;
  </code></pre>
  
  <p>This script would say the initial state was 'false' twice.</p>