why to use bind or on instead of direct event triggers in jquery?
<p>I have seen many people use bind or on functions instead of direct event triggers etc</p>

<pre><code>  $(document).bind('click', function(){
        alert('Fired');
    });
</code></pre>

<p>instead of</p>

<pre><code>  $(document).click(function(){
alert('Fired');
 });
</code></pre>

<p>same thing for on function</p>

<pre><code>$('p').on('click', function()({
alert('fired');
 });
</code></pre>

<p>instead of </p>

<pre><code> $('p').click(function()({
  alert('fired');
 });
</code></pre>

<p>can someone explain it? </p>
