Guest User

Checkbox form validation in Firefox

a guest
Feb 27th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. var isChecked = document.forms['myform'].elements['mycheckbox'].checked;
  2. if (!isChecked) {
  3. alert('You must agree');
  4. }
Add Comment
Please, Sign In to add comment