I have a simple form I\'m making client side validation for. To validate, none of the fields should be left blank. This is how I go at it:
function validateF
You were returning from the inner function not from the validate method
validate
Try
function validateForm() { var valid = true; $('.form-field').each(function () { if ($(this).val() === '') { valid = false; return false; } }); return valid }