title: Capturing the value of the proper input if one is a checkbox
body: <p>Given the following markup:</p>
  
  <pre><code>&lt;input name="active" type="hidden" value="0" /&gt;
  &lt;input id="active" name="active" type="checkbox" value="1" /&gt;
  </code></pre>
  
  <p>When the checkbox is unchecked and the form is submitted the server will get a value of "0" for the "active" param. When the checkbox is checked and the form is submitted the server will get a value of "1" for the "active" param. This works just fine.</p>
  
  <p>What I want to do is capture the proper value in JavaScript based upon that. The trick, however, is I don't know if the input is a checkbox or not. As far as my script is concerned it is just acting on a set of inputs.</p>
  
  <p>I have created a JSFiddle here: <a href="http://jsfiddle.net/bcardarella/5QRjF/" rel="nofollow">http://jsfiddle.net/bcardarella/5QRjF/</a> that demonstrates the issue.</p>
  
  <p>TL;DR I want to ensure the value I capture from each input is the actual value sent to the server.</p>