I have found an odd anomaly with HTML text boxes and JavaScript that I have narrowed down to being a html/javascript peculiarity and I\'m hoping someone can educate me on.>
This is a very old thread and the answer can be found elsewhere, but I figured I'd post it here since I found it through my research.
The onChange call for an element can be invoked programmatically a few ways:
document.getElementById("elementID").onchange();
or
var element = document.getElementById('elementID');
var event = new Event('change');
element.dispatchEvent(event);