I have two separate HTML and .js files. I have a calculation method that returns the result in a javascript file.
My question is how to set the value of a text field from a javascript return value. Or at least from a separate javascript file. I originally tried below, which does not work, since javascript and html are separate.
function Calculate(ch)
{
document.getElementById('Input').value = resultValue;
}
Thank!
source
share