I am dealing with a pre-styled button where the disabled color does not appear disabled when the button is actually disabled. Unfortunately, removing the pre-styling is not an option. So, what I would like to do is have a conditional statement that says:
If the button is disabled, show one color, otherwise show another color.
Below is the code for a button that is initially disabled for 30 seconds upon page load.
<script type="text/javascript" >
window.onload = function()
{
var btn = document.getElementsByName('submit')[0];
btn.disabled = true;
setTimeout(function(){btn.disabled = false;}, 30000);
};