我想創建一個表單,如果您在串行列上按回車鍵,下面的單元格將變爲選中狀態。有人可以解決這個任務的正確jquery公式嗎?在輸入鍵移動到表格中的下一個單元格
我想
$('.serial').keypress(function(e) {
console.log(this);
if (e.which == 13) {
$(this).nextAll('#serial').first().focus();
e.preventDefault();
}
});
' '#serial' ==」 .serial'' – epascarello