Displaying images in static dropdown .I need to display images with text but unable to display the images with text.
I have a static dropdown need to display images with text as well so added in this format but it's not displaying the images..
<select>
<option data-class="avatar" data-style="background-image:url(http://localhost/rda/assets/language-switcher/gb.png);" id="English" onclick="translateLanguage(this.id);" selected><img src="http://localhost/rda/assets/language-switcher/gb.png" alt="" /> English</option>
<option data-class="avatar" data-style="background-image:url(http://localhost/rda/assets/language-switcher/fr.png);" id="French" onclick="translateLanguage(this.id);" >French</option>
<option data-class="avatar" data-style="background-image:url(http://localhost/rda/assets/language-switcher/de.png);" id="German" onclick="translateLanguage(this.id);" >German</option>
<option data-class="avatar" data-style="background-image:url(http://localhost/rda/assets/language-switcher/it.png);" id="Italian" onclick="translateLanguage(this.id);">Italian</option>
<option data-class="avatar" data-style="background-image:url(http://localhost/rda/assets/language-switcher/es.png);" id="Spanish" onclick="translateLanguage(this.id);">Spanish</option>
</select>