title: how to resolve Error: $ is not defined in jquery?
body: <p>i am using asp.net mvc in that i am using partial views but i get the following error</p>
  
  <p>Error: $ is not defined
  Line: 159</p>
  
  <p>it is for the java script its not getting reference. i included the java script in site.master</p>
  
  <pre><code>     &lt;script src="../../Scripts/jquery-1.2.6.js" type="text/javascript"&gt;&lt;/script&gt;
       &lt;script src="../../Scripts/jquery-1.3.2.js" type="text/javascript"&gt;&lt;/script&gt;
       &lt;script src="../../Scripts/ui.core.js" type="text/javascript"&gt;&lt;/script&gt;
       &lt;script src="../../Scripts/ui.datepicker.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>first js is for partial view. and my function is:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function() {
          var dt = { changeYear: true, yearRange: "-6:+6" }
          $("#FromDate").datepicker(dt);
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>so can you tell me how to resolve reference problem.because of that date picker is also not working and partial views also not working but on local host it works fine but on server nothing is working.
  i also used  src="&lt;%= Url.Content("~/Scripts/XXXX.js")%>" but still its not working on server.
  thank you.</p>