jquery - Putting 2 images in option of drop-down -


this question has answer here:

i trying put 2 images in option-tag of dropdown-box. 1 image works background-image porperty. tried following code not working. best way this?

<select>     <option>        <img src="fist.jpg" height="10" width="10"/>        <img src="second.jpg" height="10" width="10"/>     </option> </select> 

you can't put images in option tag.

depending on you're trying do, can use multiple background images in css3.

background-image: url(first.jpg), url(second.jpg);  

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -