title: jQuery.click() vs onClick
body: <p>I have a huge jQuery application, and I'm using the below two methods for click events.</p>
  
  <p><strong>First method</strong></p>
  
  <h3>HTML</h3>
  
  <pre><code>&lt;div id="myDiv"&gt;Some Content&lt;/div&gt;
  </code></pre>
  
  <h3>jQuery</h3>
  
  <pre><code>$('#myDiv').click(function(){
      //Some code
  });
  </code></pre>
  
  <p><strong>Second method</strong></p>
  
  <h3>HTML</h3>
  
  <pre><code>&lt;div id="myDiv" onClick="divFunction()"&gt;Some Content&lt;/div&gt;
  </code></pre>
  
  <h3>JavaScript function call</h3>
  
  <pre><code>function divFunction(){
      //Some code
  }
  </code></pre>
  
  <p>I use either the first or second method in my application. Which one is better? Better for performance? And standard?</p>