If I change the value of an input field programmatically, the input and change events are not firing. For example, I have this scenario:
input
change
var $input = $('#myinput'); $input.on('input', function() { // Do this when value changes alert($input.val()); }); $('#change').click(function() { // Change the value $input.val($input.val() + 'x'); });
Change value