Return to Snippet

Revision: 17115
at August 23, 2009 20:35 by deftonez4me


Updated Code
<script type="text/javascript">
function check_agreement() {
//if the agreement checkbox is checked, return true, otherwise return false
if(document.getElementById('LocationAgree').checked == true) {
return true;
} else { 
alert('Please agree to the terms and conditions.');
return false;
}
}
</script>

Revision: 17114
at August 23, 2009 20:34 by deftonez4me


Initial Code
<script type="text/javascript">
		function check_agreement() {
			//if the agreement checkbox is checked, return true, otherwise return false
			if(document.getElementById('LocationAgree').checked == true) {
				return true;
			} else { 
				alert('Please agree to the terms and conditions.');
				return false;
			}
		}
	</script>

Initial URL

                                

Initial Description

                                

Initial Title
JS Check agreement checkbox on form submit

Initial Tags

                                

Initial Language
JavaScript