Html coding problem... How do I make a button inactive until a radio button is clicked?

Jay Vee

New member
Alright her is my problem. I have 3 values and a submit button. Is it possible to make it so the Submit button is gray and inactive until I decide to check one of the three radio values? Here is my code:

<html>
<body>

<h1>
<link rel="stylesheet" type="text/css" href="cinco.css" />
<center>
Do you live in a Hole or a boat?
</center>
</h1>
<center>
<img border="0" src="./image/Page1.png" alt="hole/boat" width="" height="" />
</center>
<form>
<center>
<input type="radio" name="live in" value="hole"/><big>Hole</big>
<input type="radio" name="live in" value="boat"/><big>Boat</big>
<input type="radio" name="live in" value="Neither"/><big>No Thanks</big>
</center>
</form>
<form>
<center>
<INPUT TYPE="BUTTON" VALUE="Submit" ONCLICK="window.location.href='Page 2.html'">
</FORM>
</center>
</body>
</html>

BTW this code is a joke, so I realize that even though there are 3 selections none of them effect the outcome of hitting submit. For reference, watch the following tape
http://video.adultswim.com/tim-and-eric-awesome-show-great-job/erics-banking-problems.html
 
Back
Top