onchange="myfunction()"
The above works perfectly when I want the Javascript function "myfunction" to execute as soon as a user inputs some text into an input field however, I have a situation where the browser automatically inputs the text. How can I execute myfunction when the field is updated with the following:
document.getElementById("myfield").value = "my value"
"onchange" does not recognise DOM changes.