From f18876840299adbdfe6ec5d3e1ebbe56ba122cc5 Mon Sep 17 00:00:00 2001 From: Tyler-A Date: Tue, 10 Sep 2019 17:52:47 -0600 Subject: [PATCH] Comments... because useful --- js/add_choice.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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