Isn't that the same as what was on the page I linked to ya?
What I'm trying to do is get two sets of the radio buttons & input. Any ideas on how to do this?
I tried this, but if you test it using the link below you will see how it doesn't work:
Code:
<script type="text/javascript">
function check(browser)
{
document.getElementById("answer").value=browser
}
</script>
<form id="Main">
<input name="snetwork" type="radio" onclick="check(this.value)" value="Op 1">
Op 1<br />
<input type="radio" name="snetwork" onclick="check(this.value)" value="Op 2">
Op 2<br />
<input type="radio" name="snetwork" onclick="check(this.value)" value="Op 3">
Op 3<br />
<br />
Code: <input type="text" onclick="this.select();" id="answer" size="20">
</form>
<script type="text/javascript">
function check(browser)
{
document.getElementById("answer2").value=browser
}
</script>
<form id="Second">
<input name="snetwork2" type="radio" onclick="check(this.value)" value="Op 4">
Op 4<br />
<input type="radio" name="snetwork2" onclick="check(this.value)" value="Op 5">
Op 5<br />
<input type="radio" name="snetwork2" onclick="check(this.value)" value="Op 6">
Op 6<br />
<br />
Code: <input type="text" onclick="this.select();" id="answer2" size="20">
</form>
thanks