I have the following input
<input id="result" ng-model="upload.documentURL" type="text" name="recievedDate"> <br></form>
where the id="result" refers to the javascript line that would provide the input its value
var message = url;
document.getElementById('result').innerHTML = message;
In other words, I want the value of the input to refer the message provided written in the javascript line.
However, I am not sure how to achieve this.Any help would be greatly appreciated.