Any help would be greatly appreciated. I am attempting to add the value from the selections in combo boxes and return the results back as the "amount" on the page being viewed. I apologize in advance for being very new to this.
<body>
<select size="1" name="Prod1_Select">
<option selected value="100.00">One</option>
<option value="150.00">Two</option>
<option value="175.00">Three</option>
</select>
<select size="1" name="Prod2_Select">
<option selected value="100.00">One</option>
<option value="150.00">Two</option>
<option value="175.00">Three</option>
</select>
<Script Language="JavaScript">
var amount=Prod1_Select.value + Prod2_Select.value;
return(amount);
</Script>
As you can see I am very lost... what's more is that once this is fixed then I want it to update the amount anytime one of the option values are changed... onChange??? and have no clue how to do it either
Thank you in advance
Brian
<body>
<select size="1" name="Prod1_Select">
<option selected value="100.00">One</option>
<option value="150.00">Two</option>
<option value="175.00">Three</option>
</select>
<select size="1" name="Prod2_Select">
<option selected value="100.00">One</option>
<option value="150.00">Two</option>
<option value="175.00">Three</option>
</select>
<Script Language="JavaScript">
var amount=Prod1_Select.value + Prod2_Select.value;
return(amount);
</Script>
As you can see I am very lost... what's more is that once this is fixed then I want it to update the amount anytime one of the option values are changed... onChange??? and have no clue how to do it either
Thank you in advance
Brian