Learning JavaScript? Download my free JavaScript Handbook 🔥

Change the value of the innerText property:

element.innerText = 'x'

To lookup the element, combine it with the Selectors API:

document.querySelector('#today .total')

Found a typo or problem? Edit this page