I am using jQuery in a project so I figured I leverage some of its specific methods. Anyway I have two buttons and upon a certain condition I'd like to disable it. Like so:
if (...condition...) {
$('button#submit, #hint').prop("disabled", true);
}
However it makes the buttons transparent—
Before:
After:
Rather than going through the trouble of creating a specific class does anyone know if jQuery have an alternative—which maybe makes it grey and rather than transparent?
Thanks in advance!