I am trying to implementing jQuery steps plugin and I started with my some basic html and form but I am not able to run steps. I have also check in console but there is no error.
I am setting up this example in my HTML: http://www.jquery-steps.com/Examples#basic-form
My Script code:
jQuery(function (){
function errorPlacement(error, element){
element.before(error);
}
jQuery("#submit-steps").steps({
headerTag: "h3",
bodyTag: "ul",
transitionEffect: "slide",
onStepChanging: function (event, currentIndex, newIndex){
jQuery("#form-2").validate().settings.ignore = ":disabled,:hidden";
return jQuery("#form-2").valid();
},
onFinishing: function (event, currentIndex){
jQuery("#form-2").validate().settings.ignore = ":disabled";
return jQuery("#form-2").valid();
},
onFinished: function (event, currentIndex){
alert("Submitted!");
},
labels: {
cancel: "Cancel",
finish: "Finish",
next: "Continue",
previous: "Previous"
}
});
});
My JSFiddle: http://jsfiddle.net/6Zd5u/26/
Need your help.
Thanks.