I have a page that I am having a problem with. A very simple version doesn't seem to pass the values. I have never tried using radios before, but why is this not working?????
Complete code is:
I put the alerts in there just to see what is going on, and I don't even get them to pop.
Any help greatly appreciated.
Jim
Complete code is:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<script type="text/javascript">
<!--
function Validate(){
var Tile;
for (i = 0; i < document.form1.Tile.length; i++){
alert ("I: " + Tile[i]);
if (document.form1.Tile[i].checked == true){
Tile = document.form1.Tile[i].value;
alert ("Tile: " + Tile);
}
}
return false;
}
//-->
</script>
</head>
<body>
<FORM name="form1">
<img height="90" src="tiles/marble.jpg" width="60" border="0"><br>
<input name="Tile" type="radio" value="marble">Marble
<img height="90" src="tiles/wood.jpg" width="60" align="top" border="0"><br>
<input name="Tile" type="radio" value="wood">Wood<p />
<p><input type="submit" onClick="Validate()"></p>
</body>
</html>
I put the alerts in there just to see what is going on, and I don't even get them to pop.
Any help greatly appreciated.
Jim