Code Monkey home page Code Monkey logo

jquery-smart-wizard's Introduction

jQuery Smart Wizard

Version 3 and later at http://mstratman.github.com/jQuery-Smart-Wizard/

NOTE: This is not being actively maintained.

Original version 2 and earlier are from http://www.techlaboratory.net/products.php?product=smartwizard

Licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. http://creativecommons.org/licenses/by-sa/3.0/

Getting Started

To see some examples, please visit http://mstratman.github.com/jQuery-Smart-Wizard/

Basic Usage:

$('#wizard').smartWizard();

Using with option parameters:

$('#wizard').smartWizard({
  // Properties
    selected: 0,  // Selected Step, 0 = first step   
    keyNavigation: true, // Enable/Disable key navigation(left and right keys are used if enabled)
    enableAllSteps: false,  // Enable/Disable all steps on first load
    transitionEffect: 'fade', // Effect on navigation, none/fade/slide/slideleft
    contentURL:null, // specifying content url enables ajax content loading
    contentURLData:null, // override ajax query parameters
    contentCache:true, // cache step contents, if false content is fetched always from ajax url
    cycleSteps: false, // cycle step navigation
    enableFinishButton: false, // makes finish button enabled always
	hideButtonsOnDisabled: false, // when the previous/next/finish buttons are disabled, hide them instead
    errorSteps:[],    // array of step numbers to highlighting as error steps
    labelNext:'Next', // label for Next button
    labelPrevious:'Previous', // label for Previous button
    labelFinish:'Finish',  // label for Finish button        
    noForwardJumping:false,
    ajaxType: 'POST',
  // Events
    onLeaveStep: null, // triggers when leaving a step
    onShowStep: null,  // triggers when showing a step
    onFinish: null,  // triggers when Finish button is clicked  
    buttonOrder: ['finish', 'next', 'prev']  // button order, to hide a button remove it from the list
}); 

Parameters and Events are describing on the table below.

Downloading Smart Wizard 3

NodeJS npm

npm install git://github.com/mstratman/jQuery-Smart-Wizard.git --save-dev

Installing Smart Wizard 3

Step 1: Include Files

Include the following JavaScript and css files on your page.

  1. jQuery Library file (Don't include if you already have it on your page)
  2. CSS(Style Sheet) file for Smart Wizard
  3. JavaScript plug-in file for Smart Wizard

To include the files copy and paste the below lines inside the head tag (<head> </head>) of your page. Make sure the paths to the files are correct with your working environment.

<script type="text/javascript" src="jquery-2.0.0.min.js"></script>
<link href="smart_wizard.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="jquery.smartWizard.js"></script>

Step 2: The JavaScript

Inititialize the Smart Wizard, copy and paste the below lines inside the head tag (<head> </head>) of your page

<script type="text/javascript">
  $(document).ready(function() {
      // Initialize Smart Wizard
        $('#wizard').smartWizard();
  }); 
</script>

Step 3: The HTML

Finally the html, below shows the HTML markup for the Smart Wizard, You can customize it by including your on contents for each steps. Copy and paste the below html inside the body tag (<body></body>) of your page.

<div id="wizard" class="swMain">
  <ul>
    <li><a href="#step-1">
          <label class="stepNumber">1</label>
          <span class="stepDesc">
             Step 1<br />
             <small>Step 1 description</small>
          </span>
      </a></li>
    <li><a href="#step-2">
          <label class="stepNumber">2</label>
          <span class="stepDesc">
             Step 2<br />
             <small>Step 2 description</small>
          </span>
      </a></li>
    <li><a href="#step-3">
          <label class="stepNumber">3</label>
          <span class="stepDesc">
             Step 3<br />
             <small>Step 3 description</small>
          </span>                   
       </a></li>
    <li><a href="#step-4">
          <label class="stepNumber">4</label>
          <span class="stepDesc">
             Step 4<br />
             <small>Step 4 description</small>
          </span>                   
      </a></li>
  </ul>
  <div id="step-1">   
      <h2 class="StepTitle">Step 1 Content</h2>
       <!-- step content -->
  </div>
  <div id="step-2">
      <h2 class="StepTitle">Step 2 Content</h2> 
       <!-- step content -->
  </div>                      
  <div id="step-3">
      <h2 class="StepTitle">Step 3 Title</h2>   
       <!-- step content -->
  </div>
  <div id="step-4">
      <h2 class="StepTitle">Step 4 Title</h2>   
       <!-- step content -->                         
  </div>
</div>

More details & descriptions:

Load ajax content

To load the content via ajax call you need to specify the property "contentURL".

example:

<script type="text/javascript">
  $(document).ready(function() {
      // Initialize Smart Wizard with ajax content load
        $('#wizard').smartWizard({contentURL:'services/ajaxcontents.php'});
  }); 
</script>

When a step got focus the SmartWizard will post the step number to this contentURL and so you can write server side logic to format the content with the step number to be shown next. The response to this call should be the content of that step in HTML format.

To get the step number in php:

$step_number = $_REQUEST["step_number"];

By default the SmartWizard will fetch the step content only on the first focus of the step, and cache the content and use it on the further focus of that step. But you can turn off the content cache by specifying the property "contentCache" to false.

example:

<script type="text/javascript">
  $(document).ready(function() {
      // Initialize Smart Wizard with ajax content load and cache disabled
        $('#wizard').smartWizard({contentURL:'services/ajaxcontents.php',contentCache:false});
  }); 
</script>

Please see the ajax contents demo and following files on the source code to know how ajax content loading is implemented.

  1. smartwizard2-ajax.htm
  2. services/service.php

Input validation

Smart Wizard 3 does not have in-built form validation, but you can call you own validation function for each steps or for all steps with the events. Smart Wizard 3 has three events (onLeaveStep, onShowStep, onFinish). So you can write your step validation login in "onLeaveStep" event and on validation fail you can stay on that step by cancelling that event. Validation logic for all steps can be write on "onFinish" event and so you can avoid submitting the form with errors.

example:

<script type="text/javascript">
$(document).ready(function(){
    // Smart Wizard         
    $('#wizard').smartWizard({
        onLeaveStep:leaveAStepCallback,
        onFinish:onFinishCallback
    });

    function leaveAStepCallback(obj, context){
        alert("Leaving step " + context.fromStep + " to go to step " + context.toStep);
        return validateSteps(context.fromStep); // return false to stay on step and true to continue navigation 
    }

    function onFinishCallback(objs, context){
        if(validateAllSteps()){
            $('form').submit();
        }
    }

    // Your Step validation logic
    function validateSteps(stepnumber){
        var isStepValid = true;
        // validate step 1
        if(stepnumber == 1){
            // Your step validation logic
            // set isStepValid = false if has errors
        }
        // ...      
    }
    function validateAllSteps(){
        var isStepValid = true;
        // all step validation logic     
        return isStepValid;
    }          
});
</script>

Please see the step validation demo and smartwizard2-validation.php in the source code to know how step input validation is implemented.

Highlight error steps

Highlighting error steps in Smart Wizard is easy

$('#wizard').smartWizard('setError',{stepnum:3,iserror:true});

It takes two arguments

  1. stepnum :- Step number to which is highlighted as error
  2. iserror :- true = set the step as error step and false = remove the error highlighting

example:

<script type="text/javascript">
    $(document).ready(function() {
        // Initialize Smart Wizard
        $('#wizard').smartWizard();

        function setError(stepnumber){
            $('#wizard').smartWizard('setError',{stepnum:stepnumber,iserror:true});
        }
    }); 
</script>

Show message inside the wizard

An in-built message box is available with Smart Wizard 3 and you can call it as like below

$('#wizard').smartWizard('showMessage','Hello! World');

example:

<script type="text/javascript">
    $(document).ready(function() {
        // Initialize Smart Wizard
        $('#wizard').smartWizard();

        function showWizardMessage(){
            var myMessage = 'Hello this is my message';
            // You can call this line wherever to show message inside the wizard
            $('#wizard').smartWizard('showMessage',myMessage);
        }
    }); 
</script>

Parameter Description:

Parameter Name Description Values Default Value
selected specify the initially-selected step integer 0
keyNavigation enable/disable key navigation.
left/right keys are used if enabled
true = enabled
false= disabled
true
enableAllSteps Enable/Disable all steps on first load true = enabled
false= disabled
false
transitionEffect Animation effect on step navigation none/fade/slide/slideleft fade
contentURL Setting this property will enable ajax content loading, setting null will disable ajax contents null or a valid url null
contentURLData with ContentURL set, use this property to override the ajax query parameters used when loading contents null or a function that takes the new step number and returns an object to override ajax parameters null
contentCache This property will enable caching of the content on ajax content mode. So the contents are fetched from the url only on first load of the step true = enabled
false= disabled
true
cycleSteps This property allows to cycle the navigation of steps true = enabled
false= disabled
false
enableFinishButton This property will make the finish button enabled always true = enabled
false= disabled
false
hideButtonsOnDisabled This property will hide the disabled buttons instead of just disabling them true = enabled
false= disabled
false
errorSteps an array of step numbers to highlighting as error steps array of integers
ex: [2,4]
[]
labelNext Label for Next button String Next
labelPrevious Label for Previous button String Previous
labelFinish Label for Finish button String Finish
noForwardJumping If true, automatically disable all steps following the current step.

e.g. If I am on step 4, and click step 1, steps 2-4 will be disabled and I cannot jump back to 3 or 4, and can only proceed "next" to step 2.
Boolean false
ajaxType The "type" parameter for ajax requests. String POST
includeFinishButton [DEPRECATED: This option will be removed in the next release] If true, adds a finish button true = show
false= don't show
true
reverseButtonsOrder [DEPRECATED: This option will be removed in the next release] If true, shows buttons ordered as: prev, next, finished true = prev, next, finished
false= finished, next, prev
false
buttonOrder Defines the display order of the buttons. To hide a button simply remove it from the list. String[] ['finish', 'next', 'prev']

Event Description:

Event Name Description Parameters
onLeaveStep Triggers when leaving a step.

This is a decision making event, based on its function return value (true/false) the current step navigation can be cancelled.
Object: object of the step anchor element. You can access the step number and step body element using this object.
Object: Context information with keys: fromStep and toStep
onShowStep Triggers when showing a step. Object: object of the step anchor element. You can access the step number and step body element using this object.
Object: Context information with keys: fromStep and toStep
onFinish Triggers when the Finish button is clicked.

This is a decision making event, based on its function return value (true/false) the further actions can be cancelled.

e.g.: If the validation fails we can cancel form submitting and can show an error message. Please see the form validation example for the implementation

If this callback is not set, clicking the finish button will submit the form in which the wizard is placed, and do nothing if a parent form is not found.
Object Array: an array of the object of all the step anchor elements Object: Context information with key: fromStep indicating which step the user was on when they clicked the finish button.

Public methods:

Methods can be called by calling smartWizard("method_name", arguments)

For example, calling the showMessage method to display "Hello, World!" would look like this:

$("#your_wizard").smartWizard('showMessage', 'Hello, World!');

Here are the available methods:

Method Name Arguments Description
showMessage String: the message to show. Show a message in the action bar
hideMessage None Hide the message in the action bar
showError Integer: the step number to highlight with an error. This is a convenience wrapper around setError.
hideError Integer: the step number to un-highlight with an error. This is a convenience wrapper around setError.
setError Object: with keys stepnum and iserror. Set or unset error status on a particular step. Passing iserror as true sets the error. Passing in a false value turns off the error.
goForward None Load the next step.
goBackward None Load the previous step.
goToStep Integer - the step number to load Load the specified step.
enableStep Integer - the step number to enable Enable the specified step.
disableStep Integer - the step number to disable Disable the specified step.
currentStep None Returns the number of the current step.
enableFinish Boolean:

true = enabled
false= disabled
Returns the status of finish button after change.
fixHeight None Adjusts the height of the step contents for the current step. In general you won't need this, but it's useful if you are dynamically setting the contents.

jquery-smart-wizard's People

Contributors

andrecarlucci avatar audreyt avatar beldougie avatar clkao avatar gemakie avatar jamesmura avatar mstratman avatar pwqw avatar rparree avatar sajadbahar avatar soulflyman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery-smart-wizard's Issues

Remote validation

I would like to see an example of the remote validation, i dont know if it is included or not, i cant find the information.

I am asumming that it is but i cant make it work as usually do.

fixHeight should not consider hidden children

I have one suggestion about the fixHeight function. When the function calculate the children's height : the hidden element are count.

Maybe the line 394 : stepContainer.children().each(function() {
can be : stepContainer.children().not(':hidden').each(function() {

Auto step buttons

I have added autoSteps option here 9755a75e45. I will be using it in the next days, but so far it seems to work.

It automatically adds the step buttons in the top, when possible it makes the HTML more DRY (only when the step labels are the same as the step titles)

Example of GoToStep and the Next button?

Hi,
I am able to get the goToStep button to work from an external call - however, I would like to decide which step I want to move to with the 'Next' button inbuilt in smart wizard, based on what the user selects in the first step i.e. if something is clicked in Step 1, then on clicking next, I can check for the value and then move to Step X or Y etc...

Is this possible? Can I get an example?

Navigation through tabs when validation occurs

Hi, Is there a way to tell the wizard that I want to keep moving through tabs after hitting a validation constrain (but without being able to submit until all validations have been taken care off), instead of being locked in the step with the validation flag?

setting properties programatically

There does not appear to be a public method for setting smartWizard properties after initialization. I would like to modify properties (e.g. labelNext) depending on the current step in my wizard. Might this justify a new method in the api?
I tried using the following code with no apparent change:
$( "#wizard" ).smartWizard( { labelNext: 'Confirm' } );

Disable Step On Check

Hi. Is there a way to disable a step when a user checks a question I have on a form? For example, I don't what the user to see step 5 if they check a question.

Not able to Add Dyanmic Tabs to the wizard

Hi Guys,

i've a requirement to add new tab's dynamically say suppose i've 5 tabs already loaded with as Wizard control and i had to add one more tab Depends on a condition on exiting from some tab(say from 3 to 4).i want added 6th tab dynamically.
Adding dynamic Tab functionality to Wizard ,i can able to see the UI change but i'm not able to navigate through it, to my understanding since document.ready function executed so there is no chance of adding new tab functionality its not considered as wizard object, so i request you to have something like $('#wizard).reload() function feature would be great i guess.

Jquery Choosen incompatible

If the wizard was set after the jquery choosen (https://github.com/harvesthq/chosen) it will cause unexpected behavior: its added a non exists step to the wizard.

Error (its will not work properly):

// mutiselection
$(".chzn-select").chosen();

// wizard
$('#wizard').smartWizard();

Right (this way works):

// wizard
$('#wizard').smartWizard();

// mutiselection
$(".chzn-select").chosen()

After two days I found this issue. I hope this note helps other peoples.

fixHeight() does not consider margins

Hi, the fixHeight() method does not take the margins of child elements in the steps into account when calculating the height of a step. This means that content can easily slip out of the bottom of the step.

The fix is easy, the jQuery.outerHeight() function has an optional boolean argument that is false by default but if set to true will take margins into account.

Let me know if you want a pull request with a patch for this.

Container hides collapseable content

Hello,

I am experiencing an issue where my form which allows user to select payment type and other expand/collapse panels are hidden. If i use a fix height the other step which are short, the next button is below the fold or too far down.

Any tips?

Next/Previous buttons don't get disabled if the corresponding step is disabled

I am using public api function disableStep to prevent the user from going back to a previous step once the wizard reaches a certain point in the use case. However, the Previous button does not become disabled and the user can simply click it to go back to the disabled step. It would appear that an additional test is called for in the internal function _adjustButton to only enable the Previous button in the case that the corresponding step itself is enabled. Same discussion obviously applies to the Next button.

update:
My call to disableStep is in my showStep event handler. Maybe this issue relates not only to _adjustButton but also to disableStep for complete solution (since _adjustButton appears to be running before the showStep event handler.

Thanks for considering.

The ajax content can not show

I found the code to show the ajax content : $($(selStep, $this.target).attr("href"), $this).html(res);
It don't show the content, I changed the code to: $($(selStep, $this.target).attr("href")).html(res); and it works.

Height settings in smart_wizard.css

Smart_wizard.css sets the height of the stepContainer to be 300px. This is not really required as we compute the outerHeight using javascript depending on the content. Setting it hardcoded to 300 fixes the height of the pane to be 312px and the rest of the content is always hidden.

If I remove the 300px in the css, then the outerHeight calculation works as expected. I will need to test this with Ajax content loading as well, but for static content, setting the height in css doesnt seem required.

Disable top bar label buttons

I'm trying to create a wizard that does not have a top label bar. I've hidden it with css, the the code seems to need the html on the page for the wizard to work. Is there an option that doesn't need the label divs and li's?

wizard autosize

Hi,

now i want to autosize the wizard to an box.
Is there a parameter which i can use?
Or only by css?

Many thanks
DJ

Error with jQuery.noConflict

If i am implementing smart wizard 3 with noConflict the following error shows up:

Cannot call method 'addClass' of null

var $j = jQuery.noConflict();

$j(document).ready(function(){

  $j('#wizard').smartWizard();

});

How can i get it working with noConflict??

document ready is called twice

When I use the wizard the document ready is called twice.
You can reproduce easily by declaring counter var inside document.ready, put alert with it and advance the counter.

Scrolling for Wizards with Multiple Steps

It would be great to have a property which allows the title bar to be scrollable when there are many steps. At the moment if there are more than 4 steps the extra steps just wrap onto a newline. This consumes a lot of screen real estate

Jquery Smart Wizard - tab functionality issue

Team,

I am using Smart Wizard in my application, when am pressing the tab inside the window- the tab is not working properly.

First it goes to step indicators (

    ) on completing the tabbing at step 4, the focus is moving to the StepContainer and tabbing from ther it is not moving to the actionBar. Its simply moving to the address bar.

    I need the focus to be moved to actionBar , once the tabbing has been completed from StepContainer.

    Please help me with the above issue.

Return false issue on event binded elements

return false; should be changed to e.preventDefault(); everywhere because it is impossible to bind other events on the same elements. i.e.

    $($this.buttons.next).click(function() {
        $this.goForward();
        return false;
    });        

To

   $($this.buttons.next).click(function(e) {
         e.preventDefault();
        $this.goForward();
    });

wizard in layout UI

Hello,

I put the wizard into a nested tab.
Now I have following problem
After finish the wizard i reload the wizard with the load event to init wizard again,
but the display of the wizard do not work. :(

What make I wrong?

Many thanks
DJ

when clicking tab very fast two tab's got selected

When try to click the tabs very fast two tabs got Selected i tried this way but no luck any one experienced this... and also tried .on /.off events no luck

$($this.steps).bind("click", function (e) {

$($this.steps).unbind("click");

        if ($this.steps.index(this) == $this.curStepIdx) {

            return false;
        }

        var nextStepIdx = $this.steps.index(this);
        var isDone = $this.steps.eq(nextStepIdx).attr("isDone") - 0;
        if (isDone == 1) {
            _loadContent($this, nextStepIdx);


        }


        $($this.steps).bind("click");
        return false;
    });

stepContainer does not grow with dynamic content

Hi there,

I have tested the wizard with Ajax content loading: the stepContainer does not grow with dynamic content???

Removed height:300px; still no luck.

Moving a step backward and returning to the previous step seems to autogrow the content but not inside current Container while loading dynamic ajax content?

Screen Capture

Question on the Wizard

I have noticed that i have to use

script src="../../Scripts/jquery-1.4.2.min.js" type="text/javascript" or the smartwizard gets error and does not render saying 'object has no method smartwizard'. I need to use
script src="../../Scripts/jquery-1.8.2.min.js" type="text/javascript" because i have other controls that depend on that version. How might this be fixed.

How to Hide Finish button untill Last Tab

Hi guys,

i want hide the Finish button while coming backwards.i want to show only if the user in the last step and sample code on how to use on showstep,
i know its possible to set this in onShowstep but if i did something in the onShowstep method Wizard not render properly it gets collapsed
i tried the following but no luck.

as StuartMorris said:

onShowStep:
function(){
var currentStep = $("#wizard").smartWizard("currentStep");
if(currentStep)
{
HideShowSubmit(currentStep);
}

function HideShowSubmit(step) {

            var LastTab = Tabs.length; //Total listitem length
            console.log('step: ' + step + ' LastTab: ' + LastTab);
            if (step == LastTab) {

                $('#wizard').smartWizard('setFinishButton', true);
                console.log('show');
            } else {
                $('#wizard').smartWizard('setFinishButton', false);
                console.log('hide');
            }

        }

I can't write in the input / textbox in the steps

Hi everyone,

I had a bug in my solution:
I could not write any text in the textbox / input type text in the steps of the wizard.
It appears that the problem was in the css:
smart_wizard_vertical.css:
line 34:
.swMain .stepContainer div.content
{
...
/* position: absolute; */
...

Hope it helps
Bye

noForwardJumping functionality is not working though i set it to true to avoid jumps

Hi guys,
i want to restrict the user to jump b/w the tabs eg from 1 to 4, in the document it states that by setting noForwardJumping attribute to true wizard will not allow the user to Jump between the tabs, but it doesn't seems to be working for my scenario intially i disabled all the tabs then i force the user to go sequentially one by one in each tab i'm validating the contents, Actually what happens when say suppose user fills required field in all the tabs before submit then suddenly user coming to say tab three and removes a required filed, through validation i'm highlighting tab using SetErrortab method and wizard doesn't allow navigate untill user fills the req field, i'm disabling the next and previous button click events ,but wizard allows user to navigate by click the tab i want restrict that also please help me to fix this.

Add/remove steps dynamically through Ajax callbacks

Hi
I was wondering if I could have dynamic number of steps.

Here is the scenario:
There are some steps, in one of the steps, user can login (step 4 of 7) via ajax and there is no post backs. So after getting the result of the login, ajax callback should decide whether the next step (5 of 7) is required of not, if not the step 5 should disappear. I tried to reach this goal by setting the display property to none for both header and div of that step by only the header's gone and by clicking on Next, the undesired step is shown.

What do you suggest in case I need to add/remove some steps dynamically?

Best regards.
Soroosh

no context is sent to onLeaveStep event

Please replace the script at index example\demo with this script:

<script type="text/javascript"> $(document).ready(function() { // Smart Wizard $('#wizard').smartWizard({ onLeaveStep:leaveAStepCallback }); function leaveAStepCallback(obj, context) { alert("Leaving step " + context.fromStep + " to go to step " + context.toStep); return false; } }); </script>

no context is being sent...

A few feature requests

I really like this plugin. While messing around with it, there are a few things that jumped out at me that I thought might be useful future functionality.

destroy:
It would be nice to have a destroy function so that once the wizard has been completed, it can be cleaned up properly. Yes, it can be done outside of the plugin since everything is classed/id'd, but it would be awesome if the plugin had a function to take care of that itself.

reset:
It would be nice to have a function which reset the wizard state to its pristine state. This would remove all messages, errors, visited steps, current step, etc to be exactly how it appeared when first initialized.

ids:
Element ids drive some of the functionality in this plugin. Has there been any talk to removing ids and going with a class-based approach so that you don't have the possibility of multiple elements with the same id? If you want to stick with ids, you could potentially generate ids using some sort of guid and have the plugin keep track of them that way.

incompatibility with jquery UI tabs?

(Unconfirmed - reported via email)

jQuery("#tabs").tabs({ selected: 0 });
inside a step seems to break the wizard.

Just a guess, but most likely this is due to a selector that reaches too far.

The buttonFinish

When the user reached the final step.
The wizard has 2 options: 1) Previous, and 2) Finish.

If the user decided to click Previous. how can I disable the Finish button.

And I am expecting the finish button to be enabled again, the next time they click NEXT and reach the final step.

Hope to hear from you.

thanks

Error: Method goToStep does not exist

This method doesn't seem to work? After initialising SmartWizard, then calling this further down in same script

$("#wizard").smartWizard("goToStep", 12);

The following error message is given.

Error: Method goToStep does not exist

Is a delay or interval required for this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.