Good day,
I would like to add the values associated with two sets of radio buttons, then post the results in form field text boxes on the same page. I would like the results in each text box to be updated when the user leaves each radio button group (I do not want to have the user click a button to see the results).
Included below is a quick example of the HTML for the radio button groups and text boxes to be populated. The values for the radio button selection are the amount that should show in the text boxes below. The total text box should sum both radio button sections.
In advance, many thanks for your help.
<html>
<body>
<form METHOD="Post" ACTION="">
<b>Section 1</b><br>
<input type="radio" name="Section1" value="2.95-ChoiceA">Choice A = $2.95<br>
<input type="radio" name="Section1" value="5.95-ChoiceB">Choice B = $5.95<br>
<input type="radio" name="Section1" value="9.95-ChoiceC">Choice C = $9.95<br>
<p>
<b>Section 2</b><br>
<input type="radio" name="Section2" value="1.95-ChoiceA">Choice A = $1.95<br>
<input type="radio" name="Section2" value="3.95-ChoiceB">Choice B = $3.95<br>
<input type="radio" name="Section2" value="0-ChoiceC">Choice C = FREE<br>
<p>
Section 1: <input type="text" name="Section1Total" size="20"><br>
Section 2: <input type="text" name="Section2Total" size="20"><br>
TOTAL : <input type="text" name="Total" size="20">
</form>
</html>
I would like to add the values associated with two sets of radio buttons, then post the results in form field text boxes on the same page. I would like the results in each text box to be updated when the user leaves each radio button group (I do not want to have the user click a button to see the results).
Included below is a quick example of the HTML for the radio button groups and text boxes to be populated. The values for the radio button selection are the amount that should show in the text boxes below. The total text box should sum both radio button sections.
In advance, many thanks for your help.
<html>
<body>
<form METHOD="Post" ACTION="">
<b>Section 1</b><br>
<input type="radio" name="Section1" value="2.95-ChoiceA">Choice A = $2.95<br>
<input type="radio" name="Section1" value="5.95-ChoiceB">Choice B = $5.95<br>
<input type="radio" name="Section1" value="9.95-ChoiceC">Choice C = $9.95<br>
<p>
<b>Section 2</b><br>
<input type="radio" name="Section2" value="1.95-ChoiceA">Choice A = $1.95<br>
<input type="radio" name="Section2" value="3.95-ChoiceB">Choice B = $3.95<br>
<input type="radio" name="Section2" value="0-ChoiceC">Choice C = FREE<br>
<p>
Section 1: <input type="text" name="Section1Total" size="20"><br>
Section 2: <input type="text" name="Section2Total" size="20"><br>
TOTAL : <input type="text" name="Total" size="20">
</form>
</html>