Hi,
I'm tryign to do something really simple -
I've also tried it with:
..and also:
..but to no avail.
I'm far from a JS expert, but I'm sure the document.formnam.field.value should work, shouldn't it? What am I doing wrong?
TIA!
Andy
I'm tryign to do something really simple -
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>
<body>
<form id="rateform2" name="rateform"><strong>Rate the video Black Solo:</strong>
<p>
<input type="hidden" name="ID" value="350977" />
<input type="radio" name="rateval" value="1">1
<input type="radio" name="rateval" value="2">2
<input type="radio" name="rateval" value="3">3
<input type="radio" name="rateval" value="4">4
<input type="radio" name="rateval" value="5">5
<input type="radio" name="rateval" value="6">6
<input type="radio" name="rateval" value="7">7
<input type="radio" name="rateval" value="8">8
<input type="radio" name="rateval" value="9">9
<input type="radio" name="rateval" value="10">10
<input value="Go" type="button" onclick='alert(document.form.rateform.rateval.value)'>
</p>
<div id="result"></div>
</form>
</body>
</html>
I've also tried it with:
Code:
onclick='alert(document.rateform.rateval.value)'
..and also:
Code:
onclick='alert(this.form.rateval.value)'
..but to no avail.
I'm far from a JS expert, but I'm sure the document.formnam.field.value should work, shouldn't it? What am I doing wrong?
TIA!
Andy