I have a form that I would like all fields to be filled in. If a field is clicked into and then not filled out, I would like to display a red background.
Here is my code:
*$('#apply-form input').blur(function()
{
if($('input:text').is(":empty"))
{
$(this).parents('p').addClass('warning');
}
});*
It applies the warning class regardless if the field is filled in or not. Any pointers as to what I'm doing wrong?