Difference between Jquery functions
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2856374/what-is-the-difference-between-these-two-javascript-functions">What is the difference between these two javascript functions?</a>  </p>
</blockquote>



<p>I am a newbie to Jquery. A question I have in mind: What is the difference between these two jquery functions?</p>

<pre><code>(function ($) {

  //Jquery code goes here..

})(jQuery)

$(function() {

 //Jquey code goes here..

});
</code></pre>

<p>Is there any difference? Need some help to understand jquery better...</p>
