Is it possible to place an image in a <select>
dropdown list?
I tried the following piece of code
<select name="selection">
<option><img src="dbdesign.jpg" alt="NOIMAGE"/>list1</option>
<option><img src="dbdesign.jpg" alt="NOIMAGE"/>list2</option>
</select>
The output shows list1 and list2 but is not showing NOIMAGE, which is the alternative to src of image.
You can't add an image to a select tag.
You can create custom menus using CSS/HTML/Javascript, but obviously this a lot more work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With