Hi all,
I have a multipage form that uses divs that are hidden to create the different pages. I am using javascript to hide or display the different divs when a next button is pressed. What I also need to do is validate the data on the current div and to advise what is missing before displaying the next one. As far as i am aware you can only call 1 javascript function using the onclick command so I can't use javascript for validation. I was wondering if anyone can advise me on the best way to go for validating the fields before displaying the next div.
Hope this makes sense.
Regards
Techu4
I have a multipage form that uses divs that are hidden to create the different pages. I am using javascript to hide or display the different divs when a next button is pressed. What I also need to do is validate the data on the current div and to advise what is missing before displaying the next one. As far as i am aware you can only call 1 javascript function using the onclick command so I can't use javascript for validation. I was wondering if anyone can advise me on the best way to go for validating the fields before displaying the next div.
Hope this makes sense.
Regards
Techu4