how to display value in input field using innerText in js code example Example: change innertext javascript element.innerText = "Hello World";