jQuery serialize does not register checkboxes

Posted by Steven on Stack Overflow See other posts from Stack Overflow or by Steven
Published on 2010-06-12T19:37:42Z Indexed on 2010/06/12 19:42 UTC
Read the original article Hit count: 247

Filed under:
|

I'm using jQuery.serialize to retrieve all data fields in a form.

My problem is that it does not retriev checkboxes that is not checked.

It includes this:

<input type="checkbox" id="event_allDay" name="event_allDay" class="checkbox" checked="checked" />

but not this

<input type="checkbox" id="event_allDay" name="event_allDay" class="checkbox" />

How can I get "values" of checkboxes that is not checked?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about serialize