onchange not working on input code example
Example 1: onchange not working input jquery
$('#elementID').trigger('change');
Example 2: on change event html not working
onchange is only triggered when the control is blurred. Try onkeypress instead.