how can i add <div> or a <span> tag inside an <option> tag?
I want the row to be <option> of course it has a value and everything, but I need to put a circle red color next to the text in that option, is that possible?
code like:
<option value="1">text<div style='background:none repeat scroll 0 0 green;height:25px;width:25px;'></div></option>
<option value="2">text<div style='background:none repeat scroll 0 0 green;height:25px;width:25px;'></div></option>
<option value="3">text<div style='background:none repeat scroll 0 0 green;height:25px;width:25px;'></div></option>
<option value="4">text<div style='background:none repeat scroll 0 0 green;height:25px;width:25px;'></div></option>
2019 UPDATE
This solution doesn’t work anymore.
Checked in latest Chrome, Firefox and Safari.
It is possible to put a red circle after the text – http://jsfiddle.net/V8cvQ/
…
UPDATE
To have different color dots
HTML
CSS
DEMO