title: checkbox value doesn't change when box is checked
body: <p>In <a href="https://stackoverflow.com/questions/9185937/form-submit-checkbox-sets-value-to-on-rather-then-true">form submit checkbox sets value to &quot;on&quot; rather than &quot;true&quot;</a>,  I explain how after submitting a form I my checkbox values are submitted as "on" rather than true.</p>
  
  <p>The suggestions were that I need to have the value attribute set for it to be returned as true.  So I set the value on the checkbox on the page to either true or false depending on if it's a new item or a value from the database.  However, when I click the checkbox firebug shows that the value doesn't change.  So how is this supposed to work?</p>
  
  <p><strong>Update a little more detail</strong> </p>
  
  <p>Ok so the situation is, of course, not as simple as explained above.  When posting a form I use jquery.form.  What that does is it looks at all the inputs gets the values puts them in an object and then posts it to the server in an ajax call. </p>
  
  <p>However, When your form has a file upload on it, what jquery.form does is it handles the file upload by creating a iframe and doing some magic( this is necessary for dealing with fileupload ) then it calls $(form).submit(); </p>
  
  <p>it is in this situation, where I am <em>not</em> submitting via ajax but rather via $.submit(), that I get the serialized value of "on" rather then true.  I have looked at the code for jquery.submit and I don't really see what the heck it's doing. <strong>update</strong> Upon further consideration I guess what it's doing is just triggering the form submit the way a button with type submit would do.</p>