How to save a part of the form which has been filled and use the step number in header to navigate in JQM

Vikram Anand Bhushan

I have a from which is basically a multistage form see the following figure

enter image description here

What I want to do is the steps which are in green at the top those steps should become like a button clicking on which I can jump to that step.

Right now I am just able to go back and forward . I am not able to jump steps

Here is a JSFIDDLE

HTML

<div class="progress1">
                <ul class="cf checkout-tabs breadcrumb" style="list-style:none"><span class="done1 talign-center stage-login">1</span>
            <li class="active1 talign-center stage-login">2</li>
            <li class="disabled talign-center stage-delivery">3</li>
            <li class="disabled talign-center stage-delivery">4</li>
            <li class="disabled talign-center  stage-payment">5</li>

        </ul>

    </div>

Thanks & Regards

Gajotres

Working example: http://jsfiddle.net/Gajotres/ZzCA2/58/

Added code:

$(".ui-content").on("click", ".checkout-tabs li",function (e) {
    var selectedTab = $(this);
    $(".checkout-tabs li").each(function(index) {
        if(index <= selectedTab.index()) {
            $(this).addClass('active1');
            if(index < selectedTab.index()) {
                $(this).addClass('done1');            
            } else {
                $(this).removeClass('done1');                  
            }
        } else if(index > selectedTab.index()) {
            $(this).removeClass('active1 done1');            
        }
    });         
    $(".step").each(function() {
        $(this).removeClass('active').addClass("ui-screen-hidden");
    }); 
    $(".step:eq(" + selectedTab.index() + ")").removeClass('ui-screen-hidden').addClass("active");
}); 

You should add code that will prevent jumping to not yet enabled tabs. I hope this is what you need.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to save a part of the form which has been filled and use the step number in header to navigate in JQM

From Dev

How to use $.scrollTo with a jqm panel that has a header

From Dev

Calculating how long a form has been filled out in JavaScript

From Dev

C++ how to use a pointer which has been created in a subroutine

From Dev

Clear form that has been automatically filled in with PHP echo code

From Dev

How to make a header in JQM with page number for different pages

From Dev

How can Mac OS X save details about the URL from which a file has been downloaded?

From Dev

How to disable div(s) until previous div has been filled in

From Dev

How to order an array only after it has been filled

From Dev

How to use SELECTED with array filled select form

From Dev

How to navigate back to specific Activity after app has been in background?

From Dev

How to navigate back to specific Activity after app has been in background?

From Dev

How to understand which UITableViewCell has been selected

From Dev

How to close a activity which has been moveTaskToBack

From Dev

How to know which Entry has been clicked?

From Dev

PHP - Which form has been submitted from <i> element?

From Dev

How to use jQuery .index() to return different results depending which <a> has been clicked

From Dev

how to check if input field has filled out and radio button has been selected

From Dev

Custom Validator not firing if control has not been filled in

From Dev

check if google recaptcha is checked or has been filled

From Dev

Use assembly from a library which has been created through ILMerge

From Dev

How to use gzip if it has not been enabled

From Dev

How to know what a tap has been made on a header section of a UITableView?

From Dev

Perl: How to check if CGI::header has already been called?

From Dev

How to set automattically date in one column when other column has been filled up

From Dev

Symfony 2: How do I manually assign a file to an entity which has been configured to use VichUploaderBundle to handle file uploads

From Dev

How programmatically save a website as if it has been rendered in a browser (the javascript executed)

From Dev

rails save how many times a page has been viewed

From Dev

How to identify which model object has been chosen?

Related Related

  1. 1

    How to save a part of the form which has been filled and use the step number in header to navigate in JQM

  2. 2

    How to use $.scrollTo with a jqm panel that has a header

  3. 3

    Calculating how long a form has been filled out in JavaScript

  4. 4

    C++ how to use a pointer which has been created in a subroutine

  5. 5

    Clear form that has been automatically filled in with PHP echo code

  6. 6

    How to make a header in JQM with page number for different pages

  7. 7

    How can Mac OS X save details about the URL from which a file has been downloaded?

  8. 8

    How to disable div(s) until previous div has been filled in

  9. 9

    How to order an array only after it has been filled

  10. 10

    How to use SELECTED with array filled select form

  11. 11

    How to navigate back to specific Activity after app has been in background?

  12. 12

    How to navigate back to specific Activity after app has been in background?

  13. 13

    How to understand which UITableViewCell has been selected

  14. 14

    How to close a activity which has been moveTaskToBack

  15. 15

    How to know which Entry has been clicked?

  16. 16

    PHP - Which form has been submitted from <i> element?

  17. 17

    How to use jQuery .index() to return different results depending which <a> has been clicked

  18. 18

    how to check if input field has filled out and radio button has been selected

  19. 19

    Custom Validator not firing if control has not been filled in

  20. 20

    check if google recaptcha is checked or has been filled

  21. 21

    Use assembly from a library which has been created through ILMerge

  22. 22

    How to use gzip if it has not been enabled

  23. 23

    How to know what a tap has been made on a header section of a UITableView?

  24. 24

    Perl: How to check if CGI::header has already been called?

  25. 25

    How to set automattically date in one column when other column has been filled up

  26. 26

    Symfony 2: How do I manually assign a file to an entity which has been configured to use VichUploaderBundle to handle file uploads

  27. 27

    How programmatically save a website as if it has been rendered in a browser (the javascript executed)

  28. 28

    rails save how many times a page has been viewed

  29. 29

    How to identify which model object has been chosen?

HotTag

Archive