I have a form here: http://www.problemio.com/test.php when you click on the “Click To Test Signup”
If you just submit the form without filling it out, the JS validation realizes that all the fields are empty, except for the checkbox at the bottom. It says that the checkbox is on even if it is unchecked.
Any idea why that happens? And what is the right way to validate the checkbox there?
var terms_and_conditions = $("#terms_and_conditions").val();
and this line outputs it as :on” alert (“Data string ” + dataString);
Thanks!!
Use this instead to get the right value.