const el = document.querySelector('#craftweight')! el.innerHTML = 'foo' // Or: document.querySelector('#craftweight')!.innerHTML = 'bar'