diff --git a/js/add_choice.js b/js/add_choice.js index b310044..1418ee4 100644 --- a/js/add_choice.js +++ b/js/add_choice.js @@ -6,5 +6,7 @@ const add_choice = () => { let clone = choice_div.content.cloneNode(true); clone.childNodes[1].childNodes[1].id = `text-in-${index}`; clone.childNodes[1].childNodes[3].id = `weight-in-${index}`; + + // Add to document without resetting the other ones document.getElementById("choices").appendChild(clone); -} \ No newline at end of file +}; \ No newline at end of file