Is there a way to get the values of all checkboxes, even if they are not checked?
HTML:
<input type="checkbox" name="color[]" value="1"/>
<input type="checkbox" name="color[]" value="2"/>
...
JS:
$("input[name='color[]']").serialize();
Something like the above, but I want the values even if they are not checked. Perhaps I need to put them into an array first before serialising?