title: 0x800a138f - JavaScript runtime error: The value of the property '$' is null or undefined, not a Function object
body: <p>When I start my project and it loads up my page, I get the following error:</p>
  
  <blockquote>
    <p>0x800a138f - JavaScript runtime error: The value of the property '$' is null or undefined, not a Function object.</p>
  </blockquote>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestPage.aspx.cs" Inherits="WebsiteTest.TestPage" %&gt;
  
  &lt;!DOCTYPE html&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
      &lt;title&gt;Web Service Test&lt;/title&gt;
      &lt;script src="http://ajax.microsoft.com/ajax/jQuery/jquery-2.1.1.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          $(function () {
              $('#tbDetails').hide();
              $('#btnClick').click(function () {
                  alert('test');
              });
          });
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
          &lt;input type="button" id="btnClick" value="Get Data" /&gt;
          &lt;table id="tbDetails"&gt;
              &lt;thead style="background-color: #DC5807; color: White; font-weight: bold"&gt;
                  &lt;tr style="border: solid 1px #000000"&gt;
                     &lt;td&gt;Description&lt;/td&gt;
                     &lt;td&gt;Comments&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm assuming, it's got something to do with JQuery not being included even though it should be.</p>
  
  <p>Any idea what the problem might be?</p>
  
  <p>Thanks.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>Works when using </p>
  
  <pre><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Will keep researching it as to why it won't work with the MS one! It is definitely there as I can download it!</p>
  
  <p><strong>Update</strong></p>
  
  <p>I figured out 2 problems:</p>
  
  <ol>
  <li><p>I was using https on my localhost and I should have used the https of jquery. Changing this got rid of my original error but it gave me some other error that I'm still researching.</p></li>
  <li><p>My code works perfectly (and more since I've open this thread) as now I'm also calling a REST web service and manipulating the data returned without a single error but this only works in Chrome and Firefox! What the hell is up with IE11</p></li>
  </ol>