Skip to content

Commit cac5e1d

Browse files
committed
New: Add row example
1 parent d9a77ab commit cac5e1d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

dom/add_row.

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
function addNewRow() {
2+
// Get a reference to the original row
3+
let originalRow = document.querySelector('.row.mb-2');
4+
// Clone the row
5+
let newRow = originalRow.cloneNode(true);
6+
// Append the cloned row to the container
7+
document.getElementById('formContainer').appendChild(newRow);
8+
}
9+

dom/add_row.js

Whitespace-only changes.

0 commit comments

Comments
 (0)