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