Jump to content

Form - checkbox


dannybrazil

Recommended Posts

The value of the checkbox will always be 'on' (or whatever you specify it to be). To see if it's on/off, use the checked attribute:

 

if (!theForm.Checkbox2.checked)
{
   alert("Please check  \"Terms of use\" field.");
   theForm.Checkbox2.focus();
   return false;
}

Link to comment
https://forums.phpfreaks.com/topic/99382-form-checkbox/#findComment-508508
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.