I'm in trouble. I'm developing a JS timetracking system for my running club, but I'm stuck at the JS timestamp function using appendChild. If you know something about these functions, then I'd love some suggestions - see my repository here.
Ideally the run-leader will input runners' numbers when they pass the finish line. When hitting enter the system will then list the number followed by the time. Meanwhile the time doesn't show well and I'm obviously not a master of JS :(
If I understand your question correctly, you want to show the time displayed in the div txtDIV when hitting enter.
Currently it shows as undefined because you try to read the value of the div with the .value. If you use .innerHTML instead of .value on line 157, it will return the time displayed in the div.
var timeStamp = document.getElementById("txtDIV").innerHTML;