We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9a77ab commit cac5e1dCopy full SHA for cac5e1d
dom/add_row.
@@ -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
0 commit comments