Topic: Include MDB icons in select

Nairod priority asked 1 year ago


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 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: https://mdbootstrap.com/snippets/standard/grzegorz-bujanski/5324663#js-tab-view



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: 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