PseftiS PseftiS - 1 year ago 174
HTML Question

Add html img tag in option text

Is there any way to put img tag in the text of a html option?
For example i need something like this :

<option value="1"> Text1<img src="foto.png"> </option>
<option value="2"> Text2<img src="foto.png"> </option>

Answer Source

An option cannot have any children elements, including img.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download