且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

按下TAB键时如何触发事件?

更新时间:2023-12-03 08:37:04

$(document).ready(function () {
    $('#<%= testTextBox.ClientID%>').keydown(function (e) {
       var code = (e.keyCode ? e.keyCode : e.which);
           if (code == 9) {
             $('#<%= 2ndTextBox.ClientID%>').focus()
                return false;
             }
    });
});

对某人有用.

致谢