mgildea / Multi-Step-Form-Js

Multi Step Form with jQuery validation
MIT License
49 stars 25 forks source link

How to validation Second Step #10

Closed praphat closed 6 years ago

praphat commented 6 years ago

How to validation Second Step and ... ? $(".msf:second").multiStepForm({ activeIndex : 0, hideBackButton : false, validate: { rules : { name : "required", email : { required : true, email : true } } } });

mgildea commented 6 years ago

I'm not sure I understand what you are asking... can you clarify a little?

praphat commented 6 years ago

I want validate on next step ?

First Step >>>>>> $(".msf:first").multiStepForm({ activeIndex : 0, hideBackButton : false, validate: { rules : { name : "required", email : { required : true, email : true } } } });

praphat commented 6 years ago

$(".msf:eq(1)").multiStepForm({ ..... });

not working.

praphat commented 6 years ago

You understand ask ?

mgildea commented 6 years ago

not really. did you follow the setup instructions in the README? you should only have to call the function once during initialization on the element with class "msf". Then there should be a child element with class "msf-content", which contains children elements each with class "msf-view". All of your form fields should be in these "msf-view" elements. Validation is done with jquery-validation, no further calls are necessary per page/view.

If you want to provide some details if you continue to have problems that could be helpful.

praphat commented 6 years ago

ok thank you ,