jQuery in sharepoint retruning Object Expected

Posted by Simon Thompson on Stack Overflow See other posts from Stack Overflow or by Simon Thompson
Published on 2010-03-26T11:54:13Z Indexed on 2010/03/26 12:13 UTC
Read the original article Hit count: 708

Filed under:
|

When I add jquery to sharepoint 2007 (MOSS) and try and use it on a page no matter what I write on the client i get an "object expected" at the line/column where the "$" appears.

I have used fiddler to check that the client is downloading the query JS (which it is)

But its like its being ignore and therefor eth "$" is not understood. Searching google everybody is saying its the selector not finding the elements but see code below I do not see how it can not find my very simple example.

In master page in header

<script type="text/javascript" src="jquery.min.js"></script>

version 1.4.2

On a page

  <a href="javascript:abc();">Testing</a>
<script>
function abc(){
        $("#simon").css("border","3px solid red");
    }
</script>
<div id="simon">

© Stack Overflow or respective owner

Related posts about sharepoint

Related posts about jQuery