First of all, there is no such thing as $.document . I suppose you mean $(document) , as that says your code ...?
If $(document) does not work, your jQuery library does not load correctly or conflicts with something else that overwrites the value of $ . If jQuery(document) also does not work, then the first problem.
Firefox Firebug is a very good tool for tracking down such issues. You can reload the page and see the request for the jquery js file, see which path it requests and exactly what it gets in response.
source share