javascript set input box value code example
Example 1: javascript set input field value
document.getElementById("myInputID").value = "My Value"; //set value on myInputID
Example 2: jquery set input value
$("button").click(function(){
$("input:text").val("Glenn Quagmire");
})