I was bored today so i wrote a little script for you.
Code:
<head>
<script>
function checkSpodTermsBox()
{
if (document.spodemail.terms.checked)
{
document.spodemail.submit.disabled = false;
}
else
document.spodemail.submit.disabled = true;
}
</script>
</head>
<body>
<form name="spodemail" action="" method="post">
<input name="terms" onclick="checkSpodTermsBox()" checked="true" type="checkbox">
<input name="submit" value="Submit" type="submit">
</body>
Place the script part inside the head of your page.
Your form needs to have a name, here i'm using spodemail.
Your checkbox needs a name, i'm using terms, and an onclick event to call the script that's in the page head.
There's nothing unusual about the submit button.
The names of things are very important. It won't work if they don't match.
Here's three lines of the script:
if (document.spodemail.terms.checked)
document.spodemail.submit.disabled = false;
document.spodemail.submit.disabled = true;
The names spodemail and terms must match the names given to your form and checkbox items respectively.