How can I modify this example so it can get values from checkboxes that aren\'t checked?
I want all checkboxes to have a value, if it hasn\'t been checked I want to get
Using the jQuery plugin serializeJSON, you can use the data-unchecked-value attribute to specify the value when unchecked:
data-unchecked-value
JavaScript:
$('input').serializeJSON({ parseBooleans: true }); // returns => { 'Check01' : false, 'Check02' : true }