Click here to Skip to main content
15,915,702 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey all i get the following error when I try and run this script I have no idea whats wrong any help would be appreciated







XML
0x800a138f - Microsoft JScript runtime error: The value of the property '$' is null or undefined, not a Function object

<pre lang="xml">&lt;script src=&quot;Scripts/jquery-1.3.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
    $(document).ready(function () {
        $(&quot;tr&quot;).filter(function () {
            return $(&#39;td&#39;, this).length &amp;&amp; !$(&#39;table&#39;, this).length
        }).click(function () {
            $(this).toggleClass(&#39;currRow&#39;);
        });
    });
&lt;/script&gt;

&lt;style type=&quot;text/css&quot;&gt;
    .currRow
    {
        background-color:Gray;
        cursor:pointer;
    }
&lt;/style&gt;</pre>
Posted
Comments
Ankur\m/ 26-Sep-12 4:43am    
You have messed up the formatting. Use 'Improve Question' widget to update your question. Just paste the Javascript code and auto formatting should do the correct formatting for you. Add the error after (or before) that (and better add it inside code tags).

1 solution

It seems your jQuery library isn't loaded. Check src is correct for the script tag. Take use of Visual Studio widget to add the source.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900