How to Get jQuery Working

Posted:

Put this in the <head> section your html file:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>

That loads the file at this URL:

http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js

That file is a minified (condensed) version of the jQuery JavaScript Library source code, which uses JavaScript to define extra useful functions, such as $.

Check out this jQuery tutorial. Especially, look at the Complete Example.

I found the link to the jQuery source by replacing the release number (1.3) in the link from the example with the latest release number (1.4.4). Also, view the jQuery Download & jQuery Source Code pages.

Check out the jQuery Cycle Plugin for rotating images, text, and other types of HTML content.