My onchange code is not working

J

Jerry Manner

Hi

I have a list field on my webpage from which users can make a
selection, likt this:
<div ID="D1" STYLE="position:absolute; left:470px; top:250px;>
<select width="100" size="1" name="Industrielijst"
onchange="T1.value=this.options[this.selectedIndex].value­"
style="font-family:
Arial; font-size: 8pt">
<option value="P1">Plants</option>
<option value="P2">Software</option>
<option value="P3">Hardware</option>
<option value="P4">System</option>
<option value="P5">Screens</option>
</select> </div>



Above this field I have a text field, like this.
<input type="text" name="T1" size="40">


Whenever I make a selection from the list I see "undefined" in the text
field. What is wrong with the onchange code?

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top