getElementById Trouble | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

getElementById Trouble

I need some help; trying to select my “timeWindow” doc using document.getElementById(), but I keep getting a script error. Is there some specific part of the code I am writing incorrectly? https://code.sololearn.com/WM2JoGoVU439/?ref=app

23rd Nov 2018, 7:18 PM
chrisHartman
3 Answers
+ 1
Jamie Thank you for the suggestion. That has solved the issue.
23rd Nov 2018, 8:38 PM
chrisHartman
0
@Jamie I need help being able to call the stmp function every time the button is pressed. I put the function as onload in the body because the elements weren't loading in time, but now I don't know how to call it again. I can only make one stamp. If I try to call the stmp function inside of itself, it says I have exceeded the max number of callbacks.
24th Nov 2018, 6:46 PM
chrisHartman
0
I would say to not use ecmaScript 6 because it doesn't work with me too
24th Nov 2018, 7:20 PM
Ali Tarek
Ali Tarek - avatar