i am creating a javascript form wizard with muilt pages in my website
with a next and cancel and back and submit on the last page
i tried google but it shows one page form wizards
please can you help me on this
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Basically you would surround each “page” of the form with a div containing the page ID or give each form element a parameter to indicate on which page it is.
Then you would create two buttons wich onclick listeners using javascript. Depending on the visible page only show prev, next, or both. Initially you make all divs or elements which not belong to the first page invisible and on a prev/next button you would change the visibility of your divs/form elements.
assuming jquery it oculd look like this:
also added the example to jsfiddle