How To... Load the jQuery JavaScript Library
Like any JavaScript API, jQuery needs to be loaded on your web page. To do so, you can host the .js file on your server or call it using Google AJAX API Loader. Using Google's AJAX Libraries API is my favorite choice when I am dealing with an online application. This might not be possible for an intranet application.
This is the HTML code to load jQuery using Google's AJAX API Loader.
This is the HTML code to load jQuery using Google's AJAX API Loader.
<script src="http://www.google.com/jsapi"></script>
<script>
// Load jQuery
google.load("jquery", "1.2.6");
</script>
Comments