Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • This will eliminate any chance of graceful degradation for your form - the submitted data would be different for users with JS disabled.
    – Andy E
    Commented Aug 18, 2011 at 14:03
  • I have to say if you use .serialize() function, this is the best solution var data = $("#userinput_form").serialize(); $('#userinput_form input[type=checkbox]:not(:checked)').each(function() { data += '&' + this.name + '=0'; });
    – windmaomao
    Commented Sep 9, 2015 at 20:53