Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > undisabling on checkbox

undisabling on checkbox
Thread Tools
Senior User
Join Date: Jul 2004
Status: Offline
Reply With Quote
Nov 29, 2004, 08:13 PM
 
i want a button to be disabled untill they click a check box. but its not working? i got the check box so how would i make it undisable my submit button?
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Nov 29, 2004, 09:44 PM
 
Code:
<html> <head> <script> function toggleOnOff() { thisThing = document.getElementById('theTarget'); return thisThing.disabled = !thisThing.disabled; } </script> </head> <body> Check Me<input type="checkbox" onClick="toggleOnOff()" /><br /> <input id="theTarget" disabled="true" type="button" value="Then Click Me" /> </body> </html>
     
jay3ld  (op)
Senior User
Join Date: Jul 2004
Status: Offline
Reply With Quote
Dec 3, 2004, 07:52 PM
 
the thisthing? do i edit that?
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Dec 4, 2004, 11:28 AM
 
This is fairly simple example code. If you don't understand how it works, and how to apply it to your own page, then it is time to go work though some tutorials. I would recommend the ones over at w3schools. Until you have a reasonable understanding of something, it is unlikely that you can use it properly.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:23 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2