I am using a bootstrap button on a page of my website and I want to change the color of a disabled button. A button that is "grayed out" and you cannot click. Is there a way I can change the color of this using CSS? Any class for this?
Thank you very much!
In case your button look like this:
the next CSS code will change its color (when disabled only):
or
If I understand your question correctly; you need to use
:disabled
. Here is a working code:I had to do this because I was disabling the button in javascript.