Jquery Keypress is not working for my input box
<pre><code>$("#epFilter").keypress(function(){
        query = $("#epFilter").val();
        alert(query);
});
</code></pre>

<p>In this code, whenever I type in my text box, it always alert one character less. It doesn't catch the last character. Why?</p>
