You have a syntax error. Change:
document:getElementById
To:
document.getElementById
(colon to a period)
solved Why is the text element not being changed when I try with a function
You have a syntax error. Change:
document:getElementById
To:
document.getElementById
(colon to a period)
solved Why is the text element not being changed when I try with a function