Click to See Complete Forum and Search --> : Change text in "<td></td>" based on dropdown selection.


jamo
01-15-2003, 05:01 PM
Hi.

I have a dropdown box offering a number of selections and I want the text displayed in part of a table to change depending on what has been selected from the dropdown menu.
I have a function which does it as the page loads just fine, but when the user clicks on a selection (and runs the function again) the text is displayed in it's own window.
I'm hoping I don't need to use an input object or the like, as it's simply text describing details about the option that has been selected.
Any ideas would be appreciated.

Jamo.

khalidali63
01-15-2003, 05:32 PM
yes you can do that on runtime.
In IE look into
element.innerText="your value"

and in NS6+
element.nodeValue = "data here"

Khalid

jamo
01-16-2003, 06:37 AM
Thanks for your help on this Dave.

I tried the getElementById and after some mucking around I got it to work.

Thanks again

Jamo