Select dropdown with icon

Bootstrap 5 Select dropdown with icon component

Responsive Select dropdown with icon built with Bootstrap 5. An example of simply placing an icon in a selection option.

Basic example

To make an icon(image) appear in the selection field, add the attribute data-mdb-icon="*" in <option>, and in place of * provide a link to the image.

      <select class="select">
        <option value="1" data-mdb-icon=""
        <option value="2" data-mdb-icon=""
        <option value="3" data-mdb-icon=""
        <option value="4" data-mdb-icon=""
        <option value="5" data-mdb-icon=""