JQUERY Syntax

Click Here

From JQUERY is easy to access to any HTML element and perform some action on that item.

The JQUERY syntax is

$(selector).accion()

JQUERY Examples

1.- If we want to hide all the <p> paragraphs in a document

$("p").hide()

2.- If we want to show all the <p> paragraphs of the HTML document

$("p").show()

3.- If you want to hide all HTML elements with "class" equals to "black"

$(".black").hide()

4.- If you want to hide all HTML elements with "id" equals to "black"

$("#black").hide()

5.- If you want to hide the current item

$(this).hide()

Click Here