I have an input field and a select element that I need to get the values from. When the user requires more items the following items can be cloned and added.
How would get the data from the two sets of elements together?
<select class="form-control" id="itemSelector"></select>
<input type="number" class="form-control" required="true" />
const itemRow = document.getElementById("itemRow");
const newRow = itemRow.cloneNode(true);
itemRow.parentNode.insertBefore(newRow, itemRow);
Aucun commentaire:
Enregistrer un commentaire