0
0
Fork 0

Comments... because useful

This commit is contained in:
Tyler-A 2019-09-10 17:52:47 -06:00
parent 4615c296b3
commit f188768402

View file

@ -6,5 +6,7 @@ const add_choice = () => {
let clone = choice_div.content.cloneNode(true); let clone = choice_div.content.cloneNode(true);
clone.childNodes[1].childNodes[1].id = `text-in-${index}`; clone.childNodes[1].childNodes[1].id = `text-in-${index}`;
clone.childNodes[1].childNodes[3].id = `weight-in-${index}`; clone.childNodes[1].childNodes[3].id = `weight-in-${index}`;
// Add to document without resetting the other ones
document.getElementById("choices").appendChild(clone); document.getElementById("choices").appendChild(clone);
} };