LyndonOHRC
Programmer
I've tried several methods mentioned on this subject but can't get any of them to work. Attached is my latest attempt.
Thanks in advance.
Lyndon
Thanks in advance.
Lyndon
Code:
<form name="MyForm" action="MyInvoice.htm" method="post">
Amount:
<input type="Text" name="Amount" size="10" value="55">
<br>
Type:
<select name="ProductType">
<option value="33" onchange="FillAmount();">Product A</option>
<option value="55" onchange="FillAmount();">Product B</option>
</select>
<input type="Submit" value="Print"
</form>
<script type="text/javascript" language="JavaScript">
function FillAmount()
{
MyForm.Amount.value = MyForm.ProductType.options[MyForm.ProductType.selectedIndex].value;
}
</script>