posted 22 years ago
Hey, Thanks for your message. In this problem I want to display the sum of the sellected index and the value in the text box, in the textbox.
For instance, if the sellected index is 4, the value displayed in the text box should be 4.
However I can not figure out how to update the values in the textbox. I will be much obliged for an early reply.
<div style="BACKGROUND-COLOR:YELLOW">
<form name ="myForm" target="_blank">
<P> SELECT NO OF TICKETS TO YOUR CHOSEN DESTINATION<p/>
<p> RYAN AIR FLT TO DUB:
<SELECT NAME ="aList" OnChange="ProcessIt(this.form, this.selectedIndex)">
<OPTION> 0.
<OPTION> 1.
<OPTION> 2.
<OPTION> 3.
<OPTION> 4.
<OPTION> 5.
<OPTION> 6.
</SELECT><p/>
Total Price of tickets $ <INPUT SIZE=12 TYPE="text" name="textBoxValue" value=0 </P>
<script language="javascript">
<!--
function ProcessIt(form,index){
form.textBoxValue.value= index;
}
//-->