It seems that jQuery's trigger() only runs event handlers that were bound with jQuery. I have some modules that use native browser event binding. Using the code from https://stackoverflow.com/a/2676527 works for me, but I'm wondering if there's something built in to jQuery that will do this?
Update from comments: apparently it works for click events on buttons. But not for change events on select boxes: http://jsfiddle.net/qxpXV/2/
For the record: hacking the other library to do its bindings with jQuery does make trigger() work, but I don't really want to do that.
.addEventListener()? I am able to invoke such a handler: jsfiddle.net/mnrUt Hm, even if I specify the code in via anoneventHTML attribute, jQuery's.trigger()is still able to run that code: jsfiddle.net/mnrUt/1