Bug Tracker

Modify

Ticket #9092 (closed bug: invalid)

Opened 2 years ago

Last modified 23 months ago

: in checkbox id

Reported by: laysoft Owned by:
Priority: high Milestone: 1.next
Component: selector Version: 1.6
Keywords: Cc:
Blocking: Blocked by:

Description

I have two checkboxes it's ids are: "x" and "x:y". I'd like to check checkboxes which id's starts "x:", but the code (  http://jsfiddle.net/laysoft/dmbXh/2/ ) selects both checboxes not only second. Under jQuery 1.4.4 it works good, above versions not. Tested under FF4, Chrome11, IE9, Opera 11.

Change History

comment:1 Changed 2 years ago by timmywil

  • Priority changed from undecided to high
  • Status changed from new to open
  • Component changed from unfiled to selector

Confirmed.

comment:2 Changed 23 months ago by ajpiano

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

As of jQuery 1.5, attribute selectors require the use of quotes around the attribute (or beginning of attribute) string. When quotes are used, the example works as expected:

 http://jsfiddle.net/dmbXh/4/

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.