For using jQuery , you need to follow the given below steps:
Step1: Go to this page -> http://jquery.com/ and download the latest version.
Step2: Now place the "jquery-1.4.2.min.js" file in the directory of your application.
It does not need any separate or special installation, it is very similar to java script.
There are two versions of the the jQuery distribution:
The Compressed Version of the distribution is very small in size and this is used for the production application. While the un-compressed version of the file is for development purpose and used by the developers while developing the application. The un-compressed version can be easily used for the debug of the application and you can also learn from its code.
To deploy the project in production environment you should use the compressed, minified version of the jQuery. Since the compressed version is very small in size its use in the production version will make your application fast and the performance will be good.
The jQuery is also available on the CDN and here is an example of using the jQuery from the CDN is:
In this video I am going to show you how to download, install and use jQuery to create simple program.
Here is the video of “How to download, install and user jQuery?”:
We have used this function in our program to attach the click event on the link to display the alert message.
This function is called by the jQuery when the page load completes and you can write your code here. In this example we have attached the click method handle on a link, which displays the alert message to user.
Here is the code part:
Here is the complete code of the html page:
This tutorial is for beginners and teaches you how to get started with the jQuery framework. In this video tutorial you have learned to download, install and create your first jQuery example program.
Posted on: July 23, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles