Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Giving an 'error' style to a material-select object

Kneidels pro asked 7 years ago


I would like to give the object a pinkish color when the required material-select drop down has not been selected.

I looked at https://mdbootstrap.com/javascript/material-select/ but did not see a style for this.

does anything exist?

 

Thanks!


Bartłomiej Malanowski staff commented 7 years ago

Could you please expand your question?

Kneidels pro commented 7 years ago

meaning - when a field which is mandatory is not filled - you can style it with red border or background to shoe the user is not filled yet. like here: https://ibb.co/m5gRt6 i would suggest in material-select to do a red border bottom or something, to fit into the current styles. does that explain it?

Marta Wierzbicka staff answered 7 years ago


Hi,

there was a similar question here: https://mdbootstrap.com/support/material-select-validation/. We don't have functionality like this now but we will think about adding this option to our material select.

Best,

Marta


Kneidels pro commented 7 years ago

Thanks. I think this is a very important element. especially as you have something like this for text inputs, "error and success messages" section of https://mdbootstrap.com/components/inputs/#input-fields thanks!

Marta Wierzbicka staff commented 7 years ago

Thank you for pointing out this.


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

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags