I\'ve been looking around for a solution to this, but can\'t seem to find any examples that work for me. Here\'s what I\'ve got so far:
$(\"#register-form\")
You can't reference the values of all the form inputs like that.
var valid = true; $('.required input').each(function(){ if( $(this).val() == '' ){ valid = false; $(this).addClass('highlight'); } });
The forms plugin will do this for you, by the way.