Click to See Complete Forum and Search --> : Image insert in dropdown select


raj_2006
08-08-2006, 11:52 PM
Hi All,


I was wondering about a issue.That is

Can i insert image inside a select box or inside a list box.

If so then will the syntax be like this?

<select>
<option>text 1 <img src="a.gif"></option>
<option>text 2 <img src="b.gif"></option>
<option>text 3 <img src="c.gif"></option>
</select>

Please let me know youropinion regarding this issue.

Thanks with luv.........Raj

pacerier
08-09-2006, 05:09 AM
sadly you can't achieve that with html, you may try using javascript to create expandable layers to get that effect. is this just a question or are you trying to insert it in your webpage. if so please provide a link or the code for the page, i'd try to help you do one with it.

raj_2006
08-09-2006, 06:35 AM
Hi,

Yes I am trying to insert the image into select dropdown in a webpage.

I am using a form with tables.


Actually what will be the way if i use javascript only?

Thanks.........Raj

pacerier
08-09-2006, 10:34 AM
may you provide the source code for the page even if its halfdone?
for javascript you can create an invisible <div> which shows only when a box is clicked (the box refers to the select box but it may well also be another div), and on selection change the box to one with the selected value.