Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7818053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:26:45+00:00 2026-06-02T06:26:45+00:00

i am creating a javascript form wizard with muilt pages in my website with

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T06:26:46+00:00Added an answer on June 2, 2026 at 6:26 am

    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:

    <form>
       <div class="form_page" id="page1">
          <input type="text" name="field1" value="field1" />
       </div>
       <div class="form_page" id="page2">
          <input type="text" name="field2" value="field2" />
          <input type="submit" value="submit" />
       </div>
    </form>
    <div id="actions"></div>
    
    
    <script>
        $(document).ready(function() {
    
            var numPages = $('.form_page').length;
            var currentPage = 1;
            var $actions = $('#actions');
            for(i = 2; i <= numPages; i++) {
    
                $('#page' + i).hide();     
            }
            var $prev = $('<input type="button" value="prev">').click(function() {
    
                if (currentPage > 1) {
    
                    $('#page' + currentPage).hide();
                    currentPage--;
                    $('#page' + currentPage).show();
                }
    
            }).appendTo($actions);
    
            var $next = $('<input type="button" value="next">').click(function() {
    
                if (currentPage < numPages) {
    
                    $('#page' + currentPage).hide();
                    currentPage++;
                    $('#page' + currentPage).show();
                }
    
            }).appendTo($actions);
        });
    </script>
    

    also added the example to jsfiddle

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a contact form for my website and and using javascript to
how can I go about creating a form with javascript? I have NO idea
I am creating a simple form. I would like to use embedded javascript to
Im creating a GSP form that i wish to submit using the $.ajax() call.
I am creating a JavaScript / ajax comment form using the jQuery Validation Plugin.
I'm creating a Drupal form with a datetime-based javascript popup calendar input that allows
HiExperts, I am creating a form with a javascript validation function for a radio
I'm building a website with codeigniter and I'm creating a form for user submission.
I have this form Im creating and when you click on the Next button
I am creating a form wizard that guides the user through each form element,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.