jQuery syntax is made for selecting HTML elements and performing some action on the element(s).
jQuery syntax
$(selector).action()
$ sign to define or access jQuery
(selector) to query or find HTML elements
action() to be performed on the element(s)
Examples
$(this).hide() : hides the current element
$("p").hide() : hides all <p> elements
$(".test").hide() : hides all elements with class="test"
$("#test").hide() : hides the element with id="test"
No comments:
Post a Comment
Note: only a member of this blog may post a comment.