Menu
I need a SIMPLE solution to check if a checkbox in a form is checked before proceeding.
Here’s my code (it doesn’t work):
<script>
function isReady(form)
{
if (isChecked(form.agree)==false)
{
alert(“You must agree to this disclaimer before applying.”);
return false;
}
}
</script>
<form name=”ask” method=”POST” onSubmit=”return isReady(ask);” action=”some action”>
<INPUT TYPE=”checkbox” NAME=”agree”>I Agree.<br>
<input type=”submit” value=”I Agree”>
</form>
Any thoughts? I’m sure there is a very simple solution. I just can’t come up with it.
Thanks.