...

View Full Version : Disable submit button until checkbox is checked



Crazydog
12-29-2006, 07:53 AM
How would I, as the title says, disable a submit button until a checkbox is checked?

TripperTreats
12-29-2006, 10:29 AM
<input type="submit" disabled=true>
....

In the Checkbox tag:


onclick = "document.getElementById('submitButtonId').disabled=false;"

Philip M
12-29-2006, 05:46 PM
This is not too effective. Another click will uncheck the box but still leave the submit button enabled. Also, disabling buttons has problem for people who for whatever reason have JavaScipt disabled.

Have a look at Bill Poster's remarks at :-

http://www.codingforums.com/showthread.php?t=95395



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum