Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
i would like to make the submit button on a form to be dissabled by default and when the user checks a checkbox, i want the submit button to be enabled. pretty urgent... please help me
change the submit button to a regular button <script> funcion SubIt(){ if(document.formname.checkboxname.checked){ document.formname.submit(); } } </script> in the button use on_click to call the function SubIt(); Any questions just ask Eric
hai, thanks, but its not what i wanted. when the form displays i need the button to be disabled by default. and when the user checks the accept terms and conditions checkbox, i want the button to be enabled. if he unchecks the check box , we have to disable the button again. thank you
That is what the script will do,,,if the box is checked it will aloow the form to be submitted, if it is unchecked, it will not be able to be submitted, you can make the button change colors or what not depending on if it is checked.
Screaming fools! It's nothing more than a tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss