Avatar of ITsolutionWizard
ITsolutionWizard
Flag 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
C#jQueryBootstrap

Avatar of undefined
Last Comment
lenamtl

8/22/2022 - Mon
lenamtl

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 :)
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.
Julian Hansen

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???
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
lenamtl

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question