Modify ↓
Ticket #12222 (closed bug: worksforme)
.serializeArray() can't do array of same named elements
| Reported by: | mikk150@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
If I make form <form> <input type="checkbox" name="checkbox[]" checked="checked" value="1" /> <input type="checkbox" name="checkbox[]" checked="checked" value="2" /> <input type="checkbox" name="checkbox[]" checked="checked" value="3" /> </form>
then $('form').submit(function (){
console.log($(this).serializeArray())
})
gives only checkbox[]=3
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Works for me. http://jsfiddle.net/bhdaq/