Learn jQuery with the help of our tutorial jQuery tutorial for absolute beginners.
This is complete jQuery tutorial for beginners and is developed for the absolute beginners trying to learn jQuery in quickest possible time. This tutorial will help you in getting started with jQuery in very short time.
Let's get started with the jQuery tutorial for absolute beginners.
In this tutorial you will learn how to download jQuery library and then add it to your project and develop simple program that shows alert message on the page load.
Step 1: Downloading jQuery library
The jQuery library can be downloaded from http://code.jquery.com/jquery-1.4.2.min.js. Download the file and save it a directory on your hard disk.
Step 2: Adding jQuery library to web page
Following line is required to add the jQuery library in the web page.
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
Step 3: Adding jQuery code to show alert message
Add the following code to display the alert message on page load:
<Script language="JavaScript">
$(document).ready(function() {
alert("jQuery tutorial for beginners Example");
});
</Script>
The $(document).ready(function() {} function is called once document dom tree is ready. An in this function we have added the JavaScript alert function to display the alert message.
In this have developed very simple example that displays the alert message "jQuery tutorial for beginners Example" on the screen.
Demo: jQuery Tutorial for beginners Example
What Next?
Now you can learn jQuery in detail with the help of our free jQuery tutorials at http://www.roseindia.net/ajax/jquery/. Here is the list of few topics covered:
More Tutorials on roseindia.net for the topic jQuery tutorial for beginners.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.