Jquery Syntax Web-development (jquery) Jquery Syntax
jQuery Syntax The jQuery syntax is tailor made forselectingHTML elements and performing someactionon the element(s).
Basic syntax is:$(selector).action()
- A $ sign to define/access jQuery
- A (selector) to "query (or find)" HTML elements
- A jQueryaction() to be performed on the element(s)
Examples:
$(this).hide() - hides the current element.
$("p").hide() - hides all elements.
$(".test").hide() - hides all elements with.
$("#test").hide() - hides the element with.
0 Response to "Jquery Syntax"
Posting Komentar