"unripecult" -
All Button attributes are accessed through the "get" and "set" methods:
oButton.set("disabled", false);
- Todd
unripecult wrote:
>
> Hello, I'm trying to achieve the following. Start with a disabled
> button, which will be enabled by javascript.
>
> This is so that if a client has no javascript enabled the button will
> be disabled. And if they do have javascript enabled the button will be
> set to enabled.
>
> I tired setting the markup of the button to disabled=true (this does
> disable the button). But I couldn't get it to become enabled.
>
> tried oButton1.disabled = false
>
> tried getting element by id which gives me the span, and going through
> its button childs enabling them and also changing the span css to the
> enabled one. This did not work since the button did get enabled but
> had no action attached to it.
>
> Any help on the matter would be greatly appreciated.
>
>