Spaces:
Sleeping

doluong6 commited on
Commit
48dbc67
·
verified ·
1 Parent(s): 117347d

Update static/script.js

Browse files
Files changed (1) hide show
  1. static/script.js +1 -1
static/script.js CHANGED
@@ -820,7 +820,7 @@ async function hienThiHSKH() {
820
 
821
  // === Tự động thêm dòng mới khi dòng cuối có thay đổi ===
822
  $("#bangHSKH tbody").on("input", "input, textarea, select", function () {
823
- const lastRow = $("#bangHSKH tbody tr").last();
824
  let isEmpty = true;
825
 
826
  lastRow.find("input[type='text'], textarea, select").each(function () {
 
820
 
821
  // === Tự động thêm dòng mới khi dòng cuối có thay đổi ===
822
  $("#bangHSKH tbody").on("input", "input, textarea, select", function () {
823
+ const lastRow = $("#bangHSKH tbody tr:visible").last();
824
  let isEmpty = true;
825
 
826
  lastRow.find("input[type='text'], textarea, select").each(function () {