I'm having a hard time with the submit handler... Why does the following still submit form when form fields left empty?
$("form").submit(function() {
$(".required").each(function() { //check each instance with class of 'required'.
if ($(this).val() == "") { //if field left blank,
return false; //halt / prevent form submission.
}
//else ..
return true; //all is ok, proceed.
});
});