Answers for "select html with icon"

CSS
2

select dropdown icon change

-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: transparent url(http://cdn1.iconfinder.com/data/icons/cc_mono_icon_set/blacks/16x16/br_down.png) no-repeat 100% center;
Posted by: Guest on August-13-2021
4

how to put icons in select

<select title="Select your spell" class="selectpicker">
  <option>Select...</option>
  <option data-icon="glyphicon glyphicon-eye-open" data-subtext="petrification">Eye of Medusa</option>
  <option data-icon="glyphicon glyphicon-fire" data-subtext="area damage">Rain of Fire</option>
</select>
Posted by: Guest on May-21-2020

Browse Popular Code Answers by Language