// 回车键事件 // 绑定键盘按下事件 $(document).keypress(function(e) { // 回车键事件 if(e.which == 13) { $("[name=deliverynum]:focus").parents("[link=row]").next("[link=row]").find("[name=deliverynum]").focus(); //每一行的tr的属性link=row } });