Bug Tracker

Opened 11 years ago

Closed 11 years ago

#3275 closed bug (invalid)

:readonly, :disabled

Reported by: djot Owned by:
Priority: trivial Milestone: 1.3
Component: selector Version: 1.2.6
Keywords: selector, selectors, readonly, disabled Cc:
Blocked by: Blocking:

Description

- Hi,

how to select readonly or disabled form fields? Do selectors like :checked or :selected exist for them? If not - why not?

not working: $('input[readonly=true]') $('input[readonly="true"]') $('input:readonly') $('input').is(':readonly')

working! $('input[readonly=1]') but why readonly=true fails then?

djot -

Change History (1)

comment:1 Changed 11 years ago by flesler

Component: coreselector
Resolution: invalid
Status: newclosed

The way browser report this attribute varies.

This should do:

$('input[readonly]')
Note: See TracTickets for help on using tickets.