Hello,
I have the following script in my page that takes the value of a radio button and places value into a text box. I need to add to this script to have another selection (pairing) of radio buttons to take the result from the previous pairing a place its value into text box2.
Code Is:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function doText(valVar)
{
document.TestForm.FillMe.value = valVar
}
//-->
</SCRIPT>
</head>
<body>
<form name="TestForm">
500 <input type="radio" name="Cost" value="500" onClick="doText(this.value)"><br>
550 <input type="radio" name="Cost" value="550" onClick="doText(this.value)"><br><br>
<input type="text" name="FillMe" value="">
<form>
</body>
</html>
Example in WYSWG of what I need:
buttons:
o 500
o 550
(User checks 500 button)
(Text Box1 now reads 500)
New Group Pairing of radio buttons
o Yes
o No
If Yes I need result of 1st text box to appear in text box 2
Any help is greatly appreciated,
Adam
I have the following script in my page that takes the value of a radio button and places value into a text box. I need to add to this script to have another selection (pairing) of radio buttons to take the result from the previous pairing a place its value into text box2.
Code Is:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function doText(valVar)
{
document.TestForm.FillMe.value = valVar
}
//-->
</SCRIPT>
</head>
<body>
<form name="TestForm">
500 <input type="radio" name="Cost" value="500" onClick="doText(this.value)"><br>
550 <input type="radio" name="Cost" value="550" onClick="doText(this.value)"><br><br>
<input type="text" name="FillMe" value="">
<form>
</body>
</html>
Example in WYSWG of what I need:
buttons:
o 500
o 550
(User checks 500 button)
(Text Box1 now reads 500)
New Group Pairing of radio buttons
o Yes
o No
If Yes I need result of 1st text box to appear in text box 2
Any help is greatly appreciated,
Adam