Agree Form

Posted: November 3, 2007 in JavaScript Stuffs
Tags: , , , ,


Heading

Agree
From

Description


JavaScript “Are you agree terms and condition” ;[ Agree Code ]

Preview

agree-form.jpg

Code

<html>

<head>

<script>

var second2;

function fifteenth(sixteenth)

{

second2=sixteenth;

if (document.all||document.getElementById)

{

for (seventeenth=0;
seventeenth<second2.form.length; seventeenth++)

{

var
eighteenth=second2.form.elements[seventeenth]; if(eighteenth.type.toLowerCase()==”submit”)eighteenth.disabled=!second2.checked;

}

}

}

function first2(sixteenth)

{

if (!document.all&&!document.getElementById)

{

if
(window.second2&&second2.checked)return true;

else

{

alert(“Please accept
terms to submit form”); return false;

}

}

}

</script>

<title></title>

</head>

<body>

<form name=”agrform” onSubmit=”return
first2(this)”>Remainder of your form here<br>

<input name=”agrcheck”
type=”checkbox” onClick=”fifteenth(this)”><b>I agree to these terms</b><br>

<input type=”Submit”
value=”Submit” disabled>

</form>

<script>


document.forms.agrform.agrcheck.checked=false;

</script>

</body>

</html>

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s