Link to home
Start Free TrialLog in
Avatar of ITsolutionWizard
ITsolutionWizardFlag for United States of America

asked on

Bootstrap Validation Help

https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_form_steps
I am using above form wizard and everything is working fine except the validation. the current code will only validate if the <input> field is empty.
My question is: how to use jquery built-in validation in this case so I do not have to write codes to check one by one? Because in my case, I have over 20+ <input> for each steps and I have at least 5 steps to go.

thanks
Avatar of lenamtl
lenamtl
Flag of Canada image

Hi,

You can use this plugin which should cover all your needs
https://jqueryvalidation.org/

Documentation and demo : https://jqueryvalidation.org/documentation/

Don't forget to validate server side too :)
Avatar of ITsolutionWizard

ASKER

Thank you. it is a good one but that does not work to me in my case.
I use https://getbootstrap.com/  for all of the UI and it is better we stick with the current UI i use. It is such pain to remove all of the codes already built and use jqueryvalidation.org.
I don't understand your response - what has bootstrap got to do with jQuery Validation?

It is such pain to remove all of the codes already built and use jqueryvalidation.org.
What code will you have to remove from jQuery validation???
ASKER CERTIFIED SOLUTION
Avatar of lenamtl
lenamtl
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial