JavaScript Code For I Accept T&C CheckBox And Its Effect On Submit Button




If Your Website Consists User Registeration Page And You Have Well Defined/Stated Terms And Conditions And You Want That All Users Must Agree To Those Terms And Conditins Before Clicking On Submit/Register Button Then Here Is Javascript + HTML Code For You.
In This Code The Submit/Register Button Will Be Disabled Until User Click On I Accept TnC Checkbox.
"
<!--JavaScript Code For I Accept T&C CheckBox And Its Effect On Submit Button-->
<html>
<head>
<title>Techulator.com</title>
<script type="text/javascript" language="javascript">
function checkme() {
if (document.getElementById("iaccept").checked)
{
document.getElementById("register").disabled = false;
}
else
{
document.getElementById("register").disabled = true;
}
</script>
</head>
<body>
<form action="some URL" method="post">
<input type="checkbox" name="iaccept" onchange="checkme()" id="iaccept">I Accept All Terms And Conditions
<br>
<input type="submit" value="Register" name="register" disabled="disabled" id="register">
</form>
</body>
</html>

<!--Coded For Techulator.com-->"