how to add value to an input JS code example Example: javascript add value to input document.getElementById("myText").value = "Johnny Bravo";