hi

Probably this line is bad...
<script type="text/javascript" src="../js/jquery/jquery.js"></script>

Usually u'll get this error when jquery can't be found. ( I'm getting
it only then )
Check if "../js/jquery/jquery.js" exists on this location at all. Rest
of code looks ok I think lol.

On Jul 17, 9:48 pm, rfresh <[EMAIL PROTECTED]> wrote:
> I'm trying to learn jquery and the first sample I copied does not run
> - I get an err in my FF3 console that says $ is not defined.
>
> Here is my code:
>
>   <html>
>   <head>
>     <script type="text/javascript" src="../js/jquery/jquery.js"></
> script>
>     <script type="text/javascript">
>
> $(document).ready(function(){
>
>         $(".btn-slide").click(function(){
>           $("#panel").slideToggle("slow");
>           $(this).toggleClass("active");
>         });
>
> });
>
>     </script>
>   </head>
>   <body>
>
>   </body>
>   </html>

Reply via email to