I still don't think you you need this  '&& ($j.trim(input.val()) == '')'