title: jQuery - serializeArray() is not getting the value of the checked checkbox
body: <p>I have a checkbox in a form that acts as a flag.</p>
  
  <p>In order to do it, I added a hidden input element so that if the checkbox is not checked, something will still be saved</p>
  
  <pre><code>&lt;form action=""&gt;
      ...
          &lt;input type="hidden" name="foo" value="no" /&gt;
          &lt;input type="checkbox" name="foo" value="yes"&gt;
      ...
  &lt;/form&gt;
  </code></pre>
  
  <p>The problem I am having is that when I</p>
  
  <ol>
  <li>check the checkbox</li>
  <li>then run jQuery.serializeArray() on the form</li>
  </ol>
  
  <p>the value set for the foo element is "no"</p>
  
  <pre><code>Object { name="foo", value="no"}
  </code></pre>
  
  <p>Shouldn't serializeArray() emulate browser behaviour? If so, shouldn't it return "yes" if checkbox is checked?</p>
  
  <p><em>I am using jQuery v1.10.2</em></p>