Thu Sep 15, 2011 8:56 pm
<html>
<title>Disable button</title>
<head>
<script language="Javascript" type="text/javascript">
function allowSubmit(){
if (document.checkdiv.termscheck.checked==''){
document.checkdiv.register.disabled=true
}else{
document.checkdiv.register.disabled=false
}
}
</script>
</head>
<body>
<p>Site registeration:
<ul>
<li>
Term1.
</li>
<li>
Term2.
</li>
<li>
Term3.
</li>
</ul>
</p>
<form name="checkdiv" action="#" >
<input type="checkbox" name="termscheck" onchange="allowSubmit()">I agree to these terms.
<br>
<input type="button" value="register" name="register" disabled="disabled">
</form>
</body>
</html>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.