Bug Tracker

Opened 8 years ago

Closed 8 years ago

#9092 closed bug (invalid)

: in checkbox id

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

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

comment:1 Changed 8 years ago by timmywil

Component: unfiledselector
Priority: undecidedhigh
Status: newopen

Confirmed.

comment:2 Changed 8 years ago by ajpiano

Resolution: invalid
Status: openclosed

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/

Note: See TracTickets for help on using tickets.