Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

combo box 2

Status
Not open for further replies.

GUJUm0deL

Programmer
Jan 16, 2001
3,676
US
This is a sample combo box :
Code:
<select name="ffield10">
	<option selected="selected" value="red, 333, No, 1, [COLOR=red]finalhopetest.jpg[/color]">red</option>
	<option value="blue, 0.00, No, 0.00, [COLOR=red]cgsdgoatt.jpg[/color]">blue</option>
	<option value="green, 0.00, No, 0.00, [COLOR=red]somthid.jpg[/color]">green</option>
</select>

The last item in the "value" attribute is an image that is associated with this item. What I'd like to do is, say if the user chose the 'blue' option, have a link appears whereby the user can click to see the image associated with this option. In the case of the 'blue' the image associated is cgsdgoatt.jpg.

How can I do this?

Thanks in advance.

_____________________________
Just Imagine.
 
I tried that changing the word "which" to "selObj" and I get the same error (although now selObj has no properties).

I added the window.onload handler.

_____________________________
Just Imagine.
 
I added the window.onload handler.

Did that fix it?

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson

[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
 
No, it did not. I still get the error. I also moved the JS code outside the form and put it at the top of the page and I still get that error.

_____________________________
Just Imagine.
 
Duh... I should have saw that.


Good eye, Dan.

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson

[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top