May 24, 2009

0 Check the Terms JavaScript Validation

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



<form name="signup" onSubmit="return checkform()">

<input type="checkbox" name="confirm" value="checkme">

<input type="submit" value="submit">


if you like this check the terms validation script then please say thanks in the comment section.


Post a Comment

Blogger Themes

Powered by Blogger