Text box text capture using Jquery always 'one character behind'
<p>I am attempting to capture user input using jquery and the keydown event.</p>

<p>Here's my code:</p>

<pre><code> $(document).ready(function() {
        $("#searchText").keydown(function() {
            var filter = jQuery.trim($(this).val());
            if (filter.length &gt; 3 || filter.length == 0) {
                //hit the index action again and pass the keyword
                $("#results").fadeOut("fast");
                $("#results").load("/Organisation/Index?keyword=" + filter, null, function() {
                    $(this).fadeIn("fast");
                });
            }
        });
    });
</code></pre>

<p>At the mo this is working, aside from the fact that the string captured always seems to be 'out of date' by one character and I have to press another key to actually get the text I want passed to my action.</p>

<p>Thanks in advance!</p>
