Is there way to "Disable" a button with CSS? I don't see that attribute (enabled: true) etc.
Thanks!
No that's not a CSS role,
No that's not a CSS role, but explain in a little more detail what you are trying to achieve and someone may have an approach.
OK, well I'm making this
OK, well I'm making this AJAX button. When someone clicks on it, there is an asynchronous request sent out to the server.
I want the button to "disable", so it looks, well disabled. It becomes grayed out and inactive. You can't click it or nutin.
Sites like youtube and other ajax sites do this when a user submit or signs in to prevent double submit. I would totally think this is a css thing :?
Jenni wrote:... I would
... I would totally think this is a css thing ...
Nah, it's behavior, not styling.
document.form1.button1.disabled=true;
Shweeet. Thanks Triumph.
Shweeet. Thanks Triumph.
Jenni wrote:Shweeet. Thanks
Shweeet. Thanks Triumph.
Oh, please don't quote me on that code. It may not work at all.

Edit: this one does work for me - document.forms[0].idOfButton.disabled=true;
However, it must be applied after the instance of the button to be disabled. It can be added to the onclick of the button to allow it to only be clicked once.