jQuery Syntax
The jQUery syntax is tailor made for selecting HTML elements and perform some action on the elements.Basic syntax is : $(selector).action()
-> A $ sign to define/access jQuery
-> A (selector) to query HTML elements
-> A jQuery action() to be performed on the elements
Examples:
$(this).hide() - hides the current element.
$("p").hide() - hides all elements.
$(".test").hide() - hides all elements with class="test".
$("#test").hide() - hides the elements with id="test"