jquery-steps icon indicating copy to clipboard operation
jquery-steps copied to clipboard

how to submit form using jquery step

Open ghost opened this issue 4 years ago • 2 comments

ghost avatar Jan 10 '20 05:01 ghost

Did you find a way around this ?

Lina-Basuni avatar Apr 09 '20 20:04 Lina-Basuni

As given here http://www.jquery-steps.com/Examples#advanced-form

form.validate({
    errorPlacement: function errorPlacement(error, element) { element.before(error); },
    rules: {
        confirm: {
            equalTo: "#password"
        }
    }
});
form.children("div").steps({
    headerTag: "h3",
    bodyTag: "section",
    transitionEffect: "slideLeft",
    onStepChanging: function (event, currentIndex, newIndex)
    {
        form.validate().settings.ignore = ":disabled,:hidden";
        return form.valid();
    },
    onFinishing: function (event, currentIndex)
    {
        form.validate().settings.ignore = ":disabled";
        return form.valid();
    },
    onFinished: function (event, currentIndex)
    {
        alert("Submitted!");
    }
});```

rahulkp220 avatar Apr 18 '20 21:04 rahulkp220