BrianMerkel
06-27-2006, 01:07 PM
Hello, I am trying to extract the value of a selected radio button. Here is what I have:
<head>
<SCRIPT TYPE="text/javascript">
<!--
function change(changer)
{
changer.Change.value = "????"
}
//-->
</SCRIPT>
</head>
<body>
<form>
<INPUT type="radio" name="number" "value="5"> 5
<BR>
<INPUT type="radio" name="number" "value="10"> 10
<BR>
<INPUT type="radio" name="number" "value="15"> 15
<br>
Number Selected: <input type="text" name="Change" value="">
<input type="button" name="Changebutton" onclick="change(this.form)" value="Change">
</form>
</body>
Where you see "????" what am I supposed to put to gather which radio button the user has selected?
If anyone could help, that would be great!
Thanks alot!
<head>
<SCRIPT TYPE="text/javascript">
<!--
function change(changer)
{
changer.Change.value = "????"
}
//-->
</SCRIPT>
</head>
<body>
<form>
<INPUT type="radio" name="number" "value="5"> 5
<BR>
<INPUT type="radio" name="number" "value="10"> 10
<BR>
<INPUT type="radio" name="number" "value="15"> 15
<br>
Number Selected: <input type="text" name="Change" value="">
<input type="button" name="Changebutton" onclick="change(this.form)" value="Change">
</form>
</body>
Where you see "????" what am I supposed to put to gather which radio button the user has selected?
If anyone could help, that would be great!
Thanks alot!