Clear comments before re-adding - probably ought to think of a better way to do this?

This commit is contained in:
Peter Edmond 2025-06-13 17:57:26 +01:00
parent 0b47c2b3e4
commit d85e82decc

View File

@ -36,6 +36,7 @@ function doComments(id,qid) {
const div = document.getElementById(id); const div = document.getElementById(id);
console.log(div); console.log(div);
div.innerHTML = "";
// Create a new <ul> element // Create a new <ul> element
const ul = document.createElement("ul"); const ul = document.createElement("ul");