Does jquery cancel itself out when not in order?
<p>I have been learning jquery and have noticed when putting scripts in the header section of my website they will work great UNTIL I put another jquery script either before or after that first script (like they are canceling out one another) I don't have specific code because I have noticed this while learning it, hoping that my tutorial would get to it sometime but this hasn't happened yet. I will list an example of what I am talking about:</p>

<p>The example below wouldn't work...</p>

<pre><code>&lt;script&gt;

   $(document).ready(function(){
      $(this).doSomething();
   });

   $(function(){
      $(this).doSomethingElse();
   });


&lt;/script&gt;
</code></pre>

<p>I then would delete the bottom function of the script and then reload the website and then the first script would finally start working again. Here is when i delete the bottom script:</p>

<pre><code> &lt;script&gt;

   $(document).ready(function(){
      $(this).doSomething();
   });

   //bottom script deleted, one above works fine

 &lt;/script&gt;
</code></pre>

<p>So, again I am new to Jquery and am wondering if jquery sort of cancels out if scripts aren't placed in order? </p>
