JQuery .trigger("click") event not the 'same' as a real 'click'?

I don’t use jQuery a lot but from a quick read (http://api.jquery.com/trigger/) I think it might be better to define your click handlers using jQuery on() (http://api.jquery.com/on/) instead of putting them in the HTML.

edit to add: https://stackoverflow.com/questions/4624670/using-jquery-to-trigger-html-onclick-event