Answer the question
In order to leave comments, you need to log in
How to make a next/back polling wizard without jquery?
Hello.
Here is a site with a wizard on it with a cloud of pages (and next and back buttons).
How to do this as simply as possible or is there a CMS ready for this task?
The main thing is that the URL at the top of the page does not change!
Thanks to all.
Answer the question
In order to leave comments, you need to log in
jQuery has nothing to do with it, you can use regular JavaScript. And there may be several strategies.
In simpler way:
1. Breaking up a huge form into parts
2. Hiding the pieces with CSS: {display: none}
3. The forward/back buttons simply hide the previous piece of the form and make the next one visible.
4. On the very last piece of the form, there is also a submit button.
More complicated:
1. Again we break the form into steps
2. Show the first step of the form
3. When the user clicks next, we send an AJAX request to the server with this data, and return the HTML of the next step (moreover, the HTML may be different, depending on what selected by the user in the previous step)
4. Replace the current section of the form with new HTML
5. And so on.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question