JQuery Introduction


What is JQuery

jQuery is a lightweight, "write less, do more", JavaScript library .It makes things like HTML document traversal and manipulation, event handling, and animation much simpler.

Syntax

$ is used for access JQuery .

$(document).ready(function(){
// Your code here ...
});

or,

$(function(){
// Your code here..
});

Selector

Selector start with dollar sign $ with parentheses : $(selector)

alt

Event

Mouse Events Keyboard Events Form Events Document/Window Events
click keypress submit load
dblclick keydown change resize
mouseenter keyup focus scroll
mouseleave blur unload