Modify ↓
Ticket #7527 (closed bug: invalid)
selecting an array
| Reported by: | Christopher Petty <cmpetty@…> | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.5 |
| Component: | unfiled | Version: | 1.4.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
In 1.4.3 i was selecting/processing html arrays as such:
$("input[name=purpose[]]").filter("[value=\"" + app_arr["purpose"][key] +"\"]").attr("checked","checked");
With the release of 1.4.4 the my array selection is no longer valid $("input[name=purpose[]]")
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.

Thanks for the report, but this is not a jQuery bug. input[name=purpose[]] is not a valid selector. You must either place the value part in quotes, or you must escape the square brackets. Please read the api documentation on selectors.