javascript - How to add an image to select option in HTML with PHP? -


i want add image in select option in html php.

the image first fetched database.

echo '<option value='.$ifet['productimage'].'><img src='.$ifet['productimage'].'/></option>';  

images don't work in select infact type of css not supported in select except line-height , border can use jquery:

here demo: http://designwithpc.com/plugins/ddslick#demo


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -