this is check the terms javascript validation script which is necessary in your web form if u you want users to agree with your site terms and conditions before they click on submit button. this is a good handy script which is necessary for web form.
<script language="Javascript">
function checkform()
{
if (document.signup.confirm.checked == false)
\\ this document.signup.confirm.checked will confirm whehter the checkbox is clicked or not if not which will be taken as false.
{
\\ this alert button will tell you to click the checkbox and agree to terms of service then only u can submit and proceed ahead.
alert("You need to read and agree to the terms of service.")
return false
}
}
</script>
<form name="signup" onSubmit="return checkform()">
<input type="checkbox" name="confirm" value="checkme">
<input type="submit" value="submit">
</form>
if you like this check the terms validation script then please say thanks in the comment section.
May 24, 2009
0 Check the Terms JavaScript Validation
Posted by raj on 6:06 AM
0 comments:
Post a Comment