|
Server : LiteSpeed System : Linux terra.hostitbro.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : outerorb ( 1091) PHP Version : 8.1.34 Disable Function : mail Directory : /home2/outerorb/dev.outerorbittech.com/oot/admin/js/ | |
|
Path: /home2/outerorb/dev.outerorbittech.com/oot/admin/js/wizard.js
Size: 1.33 KB
Permissions: 0644
(function($) {
'use strict';
var form = $("#example-form");
form.children("div").steps({
headerTag: "h3",
bodyTag: "section",
transitionEffect: "slideLeft",
onFinished: function(event, currentIndex) {
alert("Submitted!");
}
});
var validationForm = $("#example-validation-form");
validationForm.val({
errorPlacement: function errorPlacement(error, element) {
element.before(error);
},
rules: {
confirm: {
equalTo: "#password"
}
}
});
validationForm.children("div").steps({
headerTag: "h3",
bodyTag: "section",
transitionEffect: "slideLeft",
onStepChanging: function(event, currentIndex, newIndex) {
validationForm.val({
ignore: [":disabled", ":hidden"]
})
return validationForm.val();
},
onFinishing: function(event, currentIndex) {
validationForm.val({
ignore: [':disabled']
})
return validationForm.val();
},
onFinished: function(event, currentIndex) {
alert("Submitted!");
}
});
var verticalForm = $("#example-vertical-wizard");
verticalForm.children("div").steps({
headerTag: "h3",
bodyTag: "section",
transitionEffect: "slideLeft",
stepsOrientation: "vertical",
onFinished: function(event, currentIndex) {
alert("Submitted!");
}
});
})(jQuery);