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?
<input type="checkbox" id="event_allDay" name="event_allDay" class="checkbox" checked="checked" Value="On" />
<input type="hidden" name="event_allDay" Value="Off" />
This way it if it not checked, it will take the value of the hidden