:disabled (since jQuery 1.0) selects form controls that are actually disabled right now. It is a standard CSS pseudo-class. Official docs note it is subtly different from [disabled], which only checks whether the attribute exists in the markup.
Syntax
Start with these common calls. Keep them short and readable.
jQuery
$("input:disabled") // disabled inputs
$("button:disabled") // disabled buttons
$("#form :disabled") // any disabled control in a form
// :disabled → actually disabled (live state)
// [disabled] → has a disabled attribute in markup
// Toggle with .prop("disabled", true|false)
:disabled → 2
[disabled] → 1
(fieldset-disabled child has no own attribute)
How It Works
Attribute.[disabled] needs the attribute on that element.
Live.:disabled also matches controls disabled via a parent fieldset.
Difference. Counts can diverge in nested disabled groups.
Frequently Asked Questions
:disabled matches form elements that are currently disabled — not interactive. $("input:disabled") finds every disabled input in the search context. Available since jQuery 1.0.
Official jQuery docs: results are often similar, but :disabled matches elements that are actually disabled while [disabled] only checks whether the disabled attribute exists. A control inside a disabled fieldset may match :disabled without its own disabled attribute.
Bare :disabled implies the universal selector — equivalent to $("*:disabled"), which scans every element type. Prefer $("input:disabled"), $("button:disabled"), or $("#form :disabled").
Official docs: use it for elements that support the disabled attribute — button, input, select, textarea, optgroup, option, fieldset, and menuitem.
Use .prop("disabled", true) or .prop("disabled", false) to change state. Use :disabled to find elements that are already disabled. Prefer .prop over .attr for boolean form properties.
Yes. :disabled is a standard CSS pseudo-class for form controls. jQuery has supported it since 1.0. Prefer a tag prefix for clarity and performance.