View Full Version : Disable submit button until checkbox is checked
12-29-2006, 08:53 AM
How would I, as the title says, disable a submit button until a checkbox is checked?
12-29-2006, 11:29 AM
<input type="submit" disabled=true>
In the Checkbox tag:
onclick = "document.getElementById('submitButtonId').disabled=false;"
12-29-2006, 06: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 :-
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.