loading

jQuery is a lightweight, "write less, do more", JavaScript library. The purpose of jQuery is to make it much easier to use JavaScript on your website.

jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.

The jQuery library contains the following features:

  • HTML/DOM manipulation
  • CSS manipulation
  • HTML event methods
  • Effects and animations
  • AJAX
  • Utilities

jQuery Syntax

The jQuery syntax is tailor made for selecting HTML elements and performing some action on the element(s).

Basic syntax is: $(selector).action()
  • A $ sign to define/access jQuery
  • A (selector) to "query (or find)" HTML elements
  • A jQuery action() to be performed on the element(s)

Example:-

    var hiddenBox = $( "#banner-message" );
    $( "#button-container button" ).on( "click", function( event ) {
    	hiddenBox.show();
    });
    
Download Links : Learning jQuery (4th Edition), jQuery in Action

You can obtain the latest version of jQuery from the jQuery site at http:// jquery.com/. Installing jQuery is as easy as placing it within your web application and using the HTML <script> tag to include it in your pages, like this:

    <script type="text/javascript" src="scripts/jquery-1.11.1.js"></script>
    or
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    
jQuery