Saturday, September 28, 2013

Jquery Basics

JQuery is written using JavaScript code. JavaScript is a language While jQuery is a library built in the JavaScript language that helps to use the JavaScript language.

If you know basics of JavaScript, HTML and CSS, you can ealily learn JQuery. Keep files small and descriptive.

Jquery is very easy to learn and understand its simplified functions.

Cross-browser support (IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+)

Easy to use for DOM manipulation and traversal.

You can easily perform animations.

It has AJAX Capabilities.

Contains cool plugins.  Tons of plug-ins for all kind of needs.

Event Handling

Following is the important one in Jquery which specifies a function to execute when the DOM is fully loaded.

$(document).ready(function() {
    //add your stuff
});

We can use <script>  tag, to add library link:

<script type="text/javascript" src="https://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js"></script>


No comments:

Post a Comment