How can I check for empty values of (required) input fields within a section, and then add a class to them on an event, using jQuery? So far, I have tried:
required
$field = $("#sender_container input.required"); if( ! $field.val()) { $field.addClass("error"); }
this simple way may work.