samg914
28 Apr 2010, 01:44 PM
I have a 2 part web form with the second half hidden unless the user selects a checkbox, which expands the form, making the second half visible. The problem I am having is that when the user only fills out the first half and clicks the submit button my javascript validates the entire form - the second half included, which prevents them from sending it without filling out the second half too. How can I make it so that the second half is only validated when the checkbox that makes it visible is selected?
Note: The form is on an html page and when the user clicks the submit button it brings them to form-process.php, which sends the form.
Thanks in advance,
Samuel :nana:
Note: The form is on an html page and when the user clicks the submit button it brings them to form-process.php, which sends the form.
Thanks in advance,
Samuel :nana: