jQuery - Calling .trigger('click') vs .click()
<p>In jQuery what is the better way to trigger an event such as click? Using the <code>.trigger('click')</code> function or calling <code>.click()</code>?</p>

<p>I have always triggered this event by using <code>.click()</code> but suddenly decided maybe I should be using <code>.trigger('click')</code> instead. </p>

<p>I use these event triggers to trigger event listeners created with <code>.on('click', function(){...})</code>.</p>

<p>I have checked the <a href="http://api.jquery.com/trigger/" rel="nofollow">jquery api</a>, searched other stackoverflow posts <a href="http://stackoverflow.com/questions/11519159/jquery-trigger-a-click-vs-function-call">[ 1 ]</a> <a href="http://stackoverflow.com/questions/11486630/jquery-trigger-click-vs-click">[ 2 ]</a> and I can see no reason to use one over the other.</p>

<p>I would be more inclined to use <code>.trigger()</code> to keep all event triggering consistent, as this can be used to call any event including custom events. But it would seem <code>.trigger()</code> does not work in all cases.</p>

<p>What is the best way to trigger an event? <code>.trigger('click')</code> or <code>.click()</code>?</p>
