$(\'a#next\').click(function() { var tags = $(\'input[name=tags]\'); if(tags.val()==\'\'){ tags.addClass(\'hightlight\'); return false; }else{
You want the focus event.
$('a#next').focus(function() { $('#formcont').fadeIn('slow'); });