js set html value code example
Example 1: javascript set input field value
document.getElementById("myInputID").value = "My Value"; //set value on myInputID
Example 2: js innerHTML
document.getElementById("Test").innerHTML = "<p style='color:red;'>Test</p>";