Bug Tracker


Ticket #11378 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

Disabled link not reported as ":disabled"

Reported by: Motty Owned by:
Priority: low Milestone: None
Component: selector Version: git
Keywords: Cc:
Blocking: Blocked by:


When using the ":disabled" selector on a disabled link, it is reported as not disabled. It doesn't seem to matter what the disabled attribute returns. Using the selector on other elements reports as expected


$('a').is(':disabled') // always false

The ":disabled" selector was reporting correctly in jQuery v1.2.6 and 1.3.2 but not in any of the newer versions.

Change History

comment:1 Changed 2 years ago by sindresorhus

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to selector

The "a" tag doesn't have the "disabled" attribute, which is why it isn't working.

Tried the jsfiddle testcase with jQuery 1.2.6 and it didn't work either.

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


Add a comment

Modify Ticket

as closed

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

Note: See TracTickets for help on using tickets.