Topic: Include MDB icons in select
Hello,
Can we add any MDB icon (for example flags) in select options ?
This does not seem to work :
<select class="select">
<option value="1" data-mdb-icon="flag flag-us">United States</option>
</select>
Grzegorz Bujański staff answered a year ago
unfortunately this option allows you to add an image as an icon, so you'd have to pass a link to that option. But you can do it another way: https://mdbootstrap.com/snippets/standard/grzegorz-bujanski/5324663#js-tab-view
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 6.3.1
- Device: ASUS ExpertBook B5302CE
- Browser: Chrome
- OS: Windows 11
- Provided sample code: No
- Provided link: No