Set the value of an input field September 11, 2022 by Tarik This is one way of doing it: document.getElementById("nameofid").value = "My value";