javascript past value to input text code example
Example: insert value to html input with javascript variable
function product(a, b) {
return a * b;
}
function setInputValue(input_id, val) {
document.getElementById(input_id).setAttribute('value', val);
}