A
arno
Hello,
I'd like to read the content of optionbuttons ("radio") but I always get
"undefined". What's going wrong here?
I enclosed a sample (reduced to the minimum).
Thank you
arno
my testpage:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
<!--
function yepp() {
alert("hello!")
alert(document.kk.nn.value)
alert(document.kk.nn.value)
}
//-->
</script>
</head>
<body>
<form name="kk" method="POST" onSubmit="return yepp()">
<input type="radio" name="nn" value="xx" checked>xx
<input type="radio" name="nn" value="yy">yy
<input type="submit" value="post data" name="submit" >
</form>
</body>
</html>
I'd like to read the content of optionbuttons ("radio") but I always get
"undefined". What's going wrong here?
I enclosed a sample (reduced to the minimum).
Thank you
arno
my testpage:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
<!--
function yepp() {
alert("hello!")
alert(document.kk.nn.value)
alert(document.kk.nn.value)
}
//-->
</script>
</head>
<body>
<form name="kk" method="POST" onSubmit="return yepp()">
<input type="radio" name="nn" value="xx" checked>xx
<input type="radio" name="nn" value="yy">yy
<input type="submit" value="post data" name="submit" >
</form>
</body>
</html>