simple JQuery example is causing me troubles for unknown reason

Posted by cerr on Stack Overflow See other posts from Stack Overflow or by cerr
Published on 2012-10-13T02:00:53Z Indexed on 2012/10/13 3:37 UTC
Read the original article Hit count: 145

Filed under:
|
|

I'm relatively new to JQuery and would like to try something. I just followed a simple tutorial to start up with on http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery So I specified my script in the :

<script type="text/javascript">  
    $(document).ready(function() {
        $("a").click(function() {
            alert("Hello world!");
        });
    });                                   
</script>

and included a test link in the :

<a href="">Link</a>

however, when I refresh thet document my browser keeps saying

TypeError: Property '$' of object [object Window] is not a function

which I can understand for "normal" JavaScript but I believe this kind of function is new in JQuery. Can someone assist mer here, please?

links:http://wittmerperformance.com/site/

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery