Server side validation mdb-select


Topic: Server side validation mdb-select

flexinform pro premium priority asked 4 years ago

Hello there,

i would like to set a mdb-select element to invalid and set the error message from the AJAX call response manually, but i didn't find solution or example for this.

Can you help me please?

Thx


Krzysztof Wilk staff answered 4 years ago

Hi!

I think that this snippet could be helpful https://mdbootstrap.com/snippets/jquery/mikolaj-smolenski/893718#js-tab-view. You can set an error message in .done function.

The other way is to use this plugin - https://jqueryvalidation.org/validate/ (there is an ajax handler in submitHandler() description). Also, you can check an article about validation: https://mdbootstrap.com/articles/jquery/validate-forms-with-validate-js/ :)

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: Yes
  • Technology: MDB jQuery
  • MDB Version: 4.19.1
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No