Hi,
I have some radiobuttons in on my page now this is the code:
<input type="radio" name="rbname" value="1" onClick="GoNext(rbname.value)"> 1
<input type="radio" name="rbname" value="2" onClick="GoNext(rbname.value)"> 2
<input type="radio" name="rbname" value="3" onClick="GoNext(rbname.value)"> 3
<script language=javascript>
function GoNext(rbvalue)
{
alert(rbvalue)
}
</script>
Why don't I get a messagebox with the value of my radio button? It says: undefined, and I saw elsewhere that maybe you can use onClick="GoNext(this)" or something but I can't use 'this' ...
can someone help me?
I have some radiobuttons in on my page now this is the code:
<input type="radio" name="rbname" value="1" onClick="GoNext(rbname.value)"> 1
<input type="radio" name="rbname" value="2" onClick="GoNext(rbname.value)"> 2
<input type="radio" name="rbname" value="3" onClick="GoNext(rbname.value)"> 3
<script language=javascript>
function GoNext(rbvalue)
{
alert(rbvalue)
}
</script>
Why don't I get a messagebox with the value of my radio button? It says: undefined, and I saw elsewhere that maybe you can use onClick="GoNext(this)" or something but I can't use 'this' ...
can someone help me?