Change the value of the innerText
property:
element.innerText = 'x'
To lookup the element, combine it with the Selectors API:
document.querySelector('#today .total')
Given a DOM element, how do you change its value?
Change the value of the innerText
property:
element.innerText = 'x'
To lookup the element, combine it with the Selectors API:
document.querySelector('#today .total')
THE VALLEY OF CODE
THE WEB DEVELOPER's MANUAL
You might be interested in those things I do: