jQuery Tutorial


jQuery Example


jQuery References


jQuery Syntax




jQuery syntax is made by using HTML elements selector and perform some action on the elements are manipulation in Dot sign(.).

jQuery syntax: $(selector).action()

  • $ sign define the jQuery,
  • Selector define the Query Elements in HTML document, and
  • action() define the action performed on the elements.

jQuery Basic Syntax Examples

$("p").hide()
The jQuery hide() function, hiding all <p> elements.

$("this").hide()
The jQuery hide() function, hiding current(this) element.

$("#div1").hide()
The jQuery hide() function, hiding whose id="div1" in the elements.

$(".div1").hide()
The jQuery hide() function, hiding whose class=".div1" in the elements.