Bug Tracker

Modify

Ticket #7527 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by snover

  • Status changed from new to closed
  • Resolution set to invalid

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 3 years ago by Christopher Petty <cmpetty@…>

Thanks!

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.