jQuery Validate


Topic: jQuery Validate

webexpert pro asked 6 years ago

Hello. I have recently purchased MDB Pro. I can't make it work with jQuery Validate. It seems that valid() or validate() method is not triggering, as something is ovveriding it. Can you advise please?

webexpert pro answered 6 years ago

Yes, I have seen it but i have to put every detail in HTML. jQuery Validate is very famous and does it by its own, withouht having to worry about messages, translations etc. There is no way of skipping bootstrap with gulp ?

Mikołaj Smoleński staff answered 6 years ago

Hello, Have you already familiarized yourself with our documentation about validation? https://mdbootstrap.com/components/bootstrap-form-validation/ I recommend using our MDB validation to avoid errors. Best Regards

Mikołaj Smoleński staff answered 6 years ago

You can integrate jQuery Validate with our MDB, but remember to import scripts just below our MDB scripts. Then jQuery Validate will overwrite our validation. https://jqueryvalidation.org/documentation/ Best Regards

webexpert pro commented 6 years ago

Tried that, didnt work.... It triggered only browser's html validation and after adding novalidate, it did nothing.

Mikołaj Smoleński staff commented 6 years ago

Can You share Your code with us? Please share only forms and scripts part of code. Best Regards

webexpert pro commented 6 years ago

https://tinyurl.com/ybpyvvwg Very plain form (sorry for Greek), with only required tag and novalidate. I have used jquery validate for more than 100+ projects, so im very familiar to the way it acts.

Mikołaj Smoleński staff commented 6 years ago

Did You try Your scripts with default Bootstrap Inputs?

webexpert pro commented 6 years ago

No, but why normal form elements should work and not material ones?

Mikołaj Smoleński staff commented 6 years ago

Could You please send me Your code to m.smolenski@mdbootstrap.com? I'll try to fix Your issue

Mikołaj Smoleński staff answered 6 years ago

Hi there, When I added the following code at the bottom of page everything work correctly in Your project:
$("#new").validate();
Best regards

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No