$('#email').bind('keyup', function(){
if(this.value.test([REGULAR_EXPRESSION])
//doStuff -- add active class
else
//doOtherStuff -- add inactive class
});
replace [REGULAR_EXPRESSION] with one of the regular expressions found here: http://www.regular-expressions.info/email.html