Flags in select


#1

Hello,
i am trying to implement a simple select which will have flags for language.it will be in the header bar
i used Flag sprites but the flags aren’t showing in the select
here’s the code of the select

<select>
    <option>
        <img src="blank.gif" class="flag flag-cz" alt="Czech Republic" />
    </option>
        <option>
            <img src="blank.gif" class="flag flag-ad" alt="Andorra" />
    </option>
</select>

thank you for the help


#2

can you show this in a codepen or something

http://www.marghoobsuleman.com/countries-dropdown-flags
i think this is an example that you needed,


#3

sorry for the delay.i tried that example before just didn’t add the js files correctly.thanks anyway