jquery to check when a someone starts typing in to a field
<pre><code>$('a#next').click(function() {
    var tags = $('input[name=tags]');

    if(tags.val()==''){

    tags.addClass('hightlight');  
    return false; 
    }else{
    tags.removeClass('hightlight');
    $('#formcont').fadeIn('slow');
    $('#next').hide('slow');
        return false;
    }
});
</code></pre>

<p>I would like the above code to fire the fadeIn as soon as somebody starts typing into the tags input. Can somebody tell me the correct way to do this or point me in the right direction? Thanks in advance</p>

<p>EDIT </p>

<p>here is the code to do it:</p>

<pre><code>$('input#tags').keypress(function() {

    $('#formcont').fadeIn('slow');
    $('#next').hide('slow');
});
</code></pre>

<p>The only problem I've found is that my cursor no longer shows up in the text box. What am I doing wrong?</p>
