If button
isn't being called on a form element, :disabled
won't select it.
From the docs:
The :disabled selector should only be used for selecting HTML elements that support the disabled attribute (
<button>
,<input>
,<optgroup>
,<option>
,<select>
, and<textarea>
).
If it's being used, for example, to style an <a>
tag, you'll have to select for one of the ui-
classes, e.g. ui-state-disabled
.