Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Disable/Enable YUI button   Message List  
Reply | Forward Message #30902 of 52114 |
Re: [ydn-javascript] Disable/Enable YUI button

"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.
>
>




Tue May 13, 2008 9:33 pm

toddkloots
Offline Offline
Send Email Send Email

Forward
Message #30902 of 52114 |
Expand Messages Author Sort by Date

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...
unripecult
Offline Send Email
May 8, 2008
7:22 am

"unripecult" - All Button attributes are accessed through the "get" and "set" methods: oButton.set("disabled", false); - Todd...
Todd Kloots
toddkloots
Offline Send Email
May 13, 2008
9:33 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help