www.webdeveloper.com
Results 1 to 2 of 2

Thread: Enabling Disabled Buttons

  1. #1
    Join Date
    Jan 2013
    Posts
    1

    Enabling Disabled Buttons

    Using HTML, I currently have one enabled button and 7 disabled buttons.
    When the enabled button is clicked, the disabled buttons should become enabled.

    How do I go about doing this?

    Thanks.

  2. #2
    Join Date
    Aug 2012
    Location
    Canada
    Posts
    56
    assuming you have id on the disabled buttons then:
    document.getElementById('yourid').disabled=false;

    If the ids of the buttons is done sequentially you should be able to do it in a loop to get all of them. just fire the function off the onclick event of the enabled button.
    Cd&
    one of my toys And my repository and my old self ranting plus a bonus Getting the most out of Q/A sites
    Code that is 100% standards compliant is 100% correct 100% of the time... anything else is just a hack

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles