Topic: Select with validation doesn't display the message

gdw96 free asked 3 years ago


Hello,

I'm encountering a bug, I'm trying to do form validation, I have select, so I added the following attributes to the select: data-mdb-validation="true" and data-mdb-invalid-feedback="My error".

In case of error I add the invalid class to the select, the borders turn red, but the message is not displayed. I looked in the HTML parser of my browser and the tags are added (even valid-feedback) but they remain in display: none;. Should I force the display of messages by adding the d-block class? But this is not very clean.

Thank you,


Grzegorz Bujański staff answered 3 years ago


Yes. Add class d-block. That should be enough.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: 3.2.0
  • Device: Any
  • Browser: Any
  • OS: Any
  • Provided sample code: Yes
  • Provided link: No