Adding jQuery to your page

To call jQuery you can either download it or use the Google content network… If you download it, you’ll need to call it in the head like: <script type="text/javascript" src="script/jquery-1.3.2.min.js"></script>...

To call jQuery you can either download it or use the Google content network…

If you download it, you’ll need to call it in the head like:

<script type="text/javascript"  src="script/jquery-1.3.2.min.js"></script>

and you’ll need to trigger the ‘document ready’ funtion like this:

$(document).ready(function() {
     place code here
);

If you reference the Google Network version you’ll need to call it in the head like this:

<script type="text/javascript"  src="http://ajax.googleapis.com/jsapi"></script>

and you’ll need to trigger the ‘document ready’ funtion like this:

google.load("jquery", "1.3.2");
google.setOnLoadCallback(function(){
     place code here
});

Related posts:

  1. jQuery Photo Reflections

This post has had 9 views