jQuery Syntax
jQuery basically allows you to select and manipulate HTML elements. So, jQuery Syntax is made up of selecting HTML elements and performing some action on the elements. The Selector and Action are combined by using a dot (.)
sign.
Basic syntax is: $(selector).action()
A $ sign to define/access jQueryA (selector) to “query (or find)” HTML elementsA jQuery action() to be performed on the element(s)
Examples: $("p").hide()
– hides all <p>
elements.
Congratulations! Chapter Finished. Learn more about the similar topics:
Exercises & Assignments |
---|
No Content Found. |
Interview Questions & Answers |
---|
No Content Found. |