title: How can I use jquery and webresource in Microsoft Dynamics CRM 2011?
body: <p>I have downloaded latest version of jquery and added file to web resources. I have added this resource to the library of the form where I intended to use jquery, but when I tried to use simple function it didn't work. JQuery is on top of the library list. </p>
  
  <p>I tried different approach with customizing quote form by adding web resource to a form with the following code: </p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;&lt;meta charset="utf-8"&gt;&lt;/head&gt;
  &lt;body&gt;
  
      &lt;script src="http://code.jquery.com/jquery-1.10.1.min.js"&gt;&lt;/script&gt;    
  
  &lt;form&gt;
      &lt;input type="file"&gt;
  &lt;/form&gt;
  
  &lt;script&gt; 
      $(":file").change(function()
      {
          alert($(":file").val());
      }); 
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I try to run this code in CRM I get this message "Error: '$' is undefined". If I save this code to i.e. index.html it works. I was following instructions from the links bellow but without success. </p>
  
  <p><a href="http://crmconsultancy.wordpress.com/2011/06/13/using-jquery-in-crm-2011/" rel="nofollow">http://crmconsultancy.wordpress.com/2011/06/13/using-jquery-in-crm-2011/</a>
  <a href="http://thecrmworld.wordpress.com/2011/05/15/how-to-add-jquery-support-to-crm-2011/" rel="nofollow">http://thecrmworld.wordpress.com/2011/05/15/how-to-add-jquery-support-to-crm-2011/</a></p>