Helpful Information
 
 
Category: HTML & CSS
CSS able to render disabled button?

Is there a way using CSS that I can specify the look of a button when it goes disabled?

G

input[disabled], textarea[disabled], button[disabled] {
/* my CSS */
}

I believe would style the disabled form elements in any browser that supports any real amount of CSS2, which is of course not IE, but rather Gecko and Opera 6. :)

I would assume by disabling the element in JS, the attribute "disabled" will be updated to reflect that, though I don't know for sure.

Wow. Thanks JCJ and JKD.

G










privacy (GDPR)