Hello,
I have the following script in my page that takes the value of a radio button and places the 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, value in text box1 and place into text box2.
Code I have already:
<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 of what I need in WYSWG:
button group 1 is:
o 500
o 550
Lets say the user checks 500 button
Text Box1 now reads 500
** From here on is where I need help **
New Group Pairing of radio buttons (group 2):
o Yes
o No
If user checks Yes I need result of 1st Text Box1 from 1st group to appear in Text Box 2 (not created yet)
Any help is greatly appreciated,
Adam
email: ald@storis.com
I have the following script in my page that takes the value of a radio button and places the 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, value in text box1 and place into text box2.
Code I have already:
<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 of what I need in WYSWG:
button group 1 is:
o 500
o 550
Lets say the user checks 500 button
Text Box1 now reads 500
** From here on is where I need help **
New Group Pairing of radio buttons (group 2):
o Yes
o No
If user checks Yes I need result of 1st Text Box1 from 1st group to appear in Text Box 2 (not created yet)
Any help is greatly appreciated,
Adam
email: ald@storis.com