how to get the input value add when get the element in js code example Example: javascript add value to input document.getElementById("myText").value = "Johnny Bravo";