Topic: Hightlight mdbSelect with condition
klepva priority asked 9 months ago
Hi, I try to set up condition for my mdb-select. So basically we are given a selected value, if the user change it I want it to highlight, if not just stay normal. I was able to get the box highlighted when they change the value. But it seem like whenever you touch the select box it will automate highlight. So is there a way for me to set up the highlight to toggle off and on?
Here is my Screen shot:
@klepva In this case you would need to create a custom validator that will check if the select value is equal to 'Duplex' and use it instead of 'required' validator.
You can read more about custom validators in Angular official documentation: https://angular.io/guide/form-validation#custom-validators
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Priority
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: MDB5 1.6.1
- Device: PC
- Browser: Chrome
- OS: Any
- Provided sample code: No
- Provided link: No