textContent not value
Anirudh Oppiliappan x@icyphox.sh
Tue, 08 Nov 2022 20:30:18 +0530
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
views/local.js
→
views/local.js
@@ -18,6 +18,6 @@ return day + " " + month + year;
} } -var honkdate = document.getElementById("honkdate").value; +var honkdate = document.getElementById("honkdate").textContent; const ts = Date.parse(honkdate); -honkdate.value = timeSince(ts); +honkdate.textContent = timeSince(ts);