jQuery Tutorial

In this tutorial you will learn how/where to download jQuery library and then how to include it to your files and how to use all its functions.

You can download jQuery library from jQuery site.
http://code.jquery.com/jquery-1.4.1.js – download this file and save it your desired location/folder.

Let’s see how to include this file in web page. Assume you saved ‘jquery-1.4.2.min.js’ in ‘js’ folder. Then you have to include this file in web page using below code. Add this line in <header> section.

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

Then we will see how to show alert message on page load.

<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<Script language="JavaScript">
$(document).ready(function() {
alert("Learnwebdevelopment – jQuery tutorial");
});
</Script>

The $(document).ready(function() {} function is called once document dom tree is ready. And in this function we have added the JavaScript alert function to display the alert message.

You can see all its functions, examples here http://qualitypointtech.net/forum/viewtopic.php?f=25&t=1135

Posted in jQuery