Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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:
Blocked by: Blocking:

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 (2)

comment:1 Changed 9 years ago by snover

Resolution: invalid
Status: newclosed

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.

comment:2 Changed 9 years ago by Christopher Petty <cmpetty@…>

Thanks!

Note: See TracTickets for help on using tickets.