Does not cature multiple checkbox inputs
pc-jkahn opened this issue · 0 comments
pc-jkahn commented
The standard mechanism for a form to allow users to select multiple checkboxes is to set the names of the checkboxes to the same value. E.g.
<input type="checkbox" name="animal" value="Cat">Cats <br> <input type="checkbox" name="animal" value="Dog">Dogs<br>
If both boxes are checked serializeArray
correctly gets both values, but calling serializeObject
only gets one value, the last value, because it overwrites the value each time.