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
if ($('input:text').val().length == 0) { $(this).parents('p').addClass('warning'); }