Side navigation
#3275 closed bug (invalid)
Opened August 21, 2008 12:43PM UTC
Closed August 21, 2008 02:18PM UTC
: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
-
Attachments (0)
Change History (1)
Changed August 21, 2008 02:18PM UTC by comment:1
component: | core → selector |
---|---|
resolution: | → invalid |
status: | new → closed |
The way browser report this attribute varies.
This should do: