How do I integrate jQuery into SharePoint 2010?
<p>I've been doing lots of reading about all the nifty things that can be done using jQuery on a SharePoint site. I decided it was time to dive in! Unfortunately, I seem to have hit my first stumbling block right out of the gate. Following a couple blog posts, I'm trying to add the reference to the master page. I added:</p>

<pre><code>&lt;script language="javascript" src="jquery-1.3.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
</code></pre>

<p>to the <code>&lt;head&gt;</code> section of the master page. The .js file is in the root directory of the site. I'm trying to run a test to see if it's being included with the following code: </p>

<pre><code>&lt;asp:Content id="Content1" runat="server" contentplaceholderid="PlaceHolderMain"&gt;
    &lt;script type="text/javascript"&gt; 
        $(document).ready(function() { 
            $("#cb").live('click', function() { 
            $("#lblMessage").text("you clicked on CheckBox, selected = " + $("#cb").attr('checked')); 
            }); 
        }); 
    &lt;/script&gt; 
    &lt;input type="checkbox" id="cb" /&gt; 
    &lt;label id="lblMessage"&gt;&lt;/label&gt;
&lt;/asp:Content&gt;
</code></pre>

<p>When I load the page I get an Object Expected Error at the point where the first <code>$</code> is.</p>

<p>What am I missing here?</p>
