The difference between :disabled and [disabled] in CSS
ALT Use the CSS :disabled pseudo-class instead of the [disabled] attribute selector to match disabled form controls. The [disabled] selector matches form controls that have the disabled attribute set (this includes dynamically disabled form controls, since the .disabled property reflects the disabled attribute). However, a form control is also in the disabled state if it’s inside a disabled <fieldset> element. In other words, the form control can be disabled even when it doesn’t have the disabled attribute set. The :disabled selector matches the disabled form control in both cases.