/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<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>
Comments
