Topic: Include MDB icons in select

Nairod priority asked 1 year ago


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>

Grzegorz Bujański staff answered 1 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:

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Priority
  • 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