On click of TAB the focus should be on the next textbox
<p>I have two textboxes and when TAB is pressed from one textbox it goes to another place instead of to the next textbox.</p>

<p>My code is:</p>

<pre><code>   $(function () {

        $("input[id$=txt1]").bind('keydown',
        function (e) {
            if (e.which == 9) {
                // alert("hello");
                $("input[id$=txt2]").focus();
            }
        }
        );

    });
</code></pre>

<p>When I press tab for txt1 it should go to txt2 but it doesn't. </p>

<p>Any help?</p>
