What is jQuery

jQuery is a lightweight JavaScript library.

The purpose of jQuery is to make it much easier to use JavaScript on your website.

jQuery takes a lot of common tasks that require many lines of JavaScript code to accomplish, and wraps them into methods that you can call with a single line of code.

jQuery also simplifies a lot of the complicated things from JavaScript, like AJAX calls and DOM manipulation.

The jQuery library contains the following features:

 - HTML/DOM manipulation

 - CSS manipulation

 - HTML event methods

 - Effects and animations

 - AJAX

 - Utilities

jQuery Syntax

Basic syntax of JQuery: $(selector).action()

 - A $ sign to define/access jQuery

 - A (selector) to  find HTML elements whole current page

 - A jQuery action() to be performed on the element(s) in a page

Example :

  $(this).hide() - hides the current element.

  $("h1").hide() - hides all elements.

  $(".demo").hide() - hides all elements with class="demo".

  $("#demo").hide() - hides the element with id="demo".

If work in jquery language you need to write all program insight document.ready example show below

Example :

$(document).ready(function(){
// jQuery all function and methods write here.
});

 

 

Quick ask your Question