|
|
|
|
Like this code?
Show the author your appreciation.
|
|
| |
Check out the attached images.
|
<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)">
<div align="center">
<p> </p>
<p>
<font face="Verdana, Arial, Helvetica, sans-serif"><strong>Click to Submit form</strong></font>
<BR><BR>
<input name="agrcheck" type="checkbox" onClick="fifteenth(this)">
<b><font color="#FF0000">I agree to these terms</font></b>
<BR><BR>
<input type="Submit" value="Submit" disabled>
</p>
</div>
</form>
<script>
document.forms.agrform.agrcheck.checked=false;
</script>
</body>
</html> | | |
|
| Autofill HTML forms with data lock. Categories : HTML, Java Script, Form Processing, Beginner Guides | | | PHP and javascript mouseover, mouseout, and mousedown events Categories : PHP, Java Script, Form Processing, Beginner Guides | | | Changing the Style of form objects using the JavaScript OnClick method. Categories : Java Script, Form Processing, Beginner Guides, CSS | | | JavaScript dropdown list menu to switch any page. Categories : Java Script, Beginner Guides, Form Processing | | | Show hide table rows to make dynamic forms Categories : Beginner Guides, Java Script, Form Processing, HTTP | | | Form Processing : with alert Highlight field name which is not filled by user Categories : Java Script, Form Processing, Data Validation, Beginner Guides, Web Design | | | Show or Hide your Content using Javascript Categories : Java Script, HTML, CSS, Beginner Guides | | | showing Help (assistance) to the user while filling html forms. Categories : HTML, Java Script, Form Processing | | | Enchancing dd/mm/yyyy forms with unobtrusive javascript Categories : Java Script, HTML, User Interface, Date Time | | | Hilight Form Element onFocus Categories : Java Script, Form Processing, CSS | | | Upload any fixed type of files, control file type through javascript and encrypt filename using php so file not get overwrite Categories : PHP, Java Script, Functions, PHP References, Form Processing | | | How to get the Focus (Cursor) into a Form-Element. Categories : HTML, Java Script | | | Ajax - Perform a simple server side request and update the current HTML page. Categories : AJAX, Java Script, Beginner Guides | | | Real simple example of removing HTML tags from text then changing \n (new line) to <br>. Could be used in a forum for instance. Categories : HTML, PHP, HTML and PHP, Beginner Guides | | | Rollover Image link effect using only single image. Categories : Web Design, HTML, CSS, Beginner Guides | |
|
|