Learn JQuery Selectors
Understanding jQuery Selectors jQuery Home In this tutorial, you will learn, how to use various types of selectors in jQuery. What is Selector? Selector selects one or more HTML elements using jQuery. Once an element is selected, then we can perform various operations on that selected element. jQuery Syntax The purpose of jQuery syntax is for selecting HTML elements and performing some action on the element(s). Basic syntax is: $( selector ) . action() example: $( "p" ) . hide() $ sign to invoke jQuery ( selector ) to "query (or find)" HTML elements/Tag name action() jQuery action to be performed on the element(s) The jQuery element selector selects elements based on the element name, and performs specified action on it. In the above example $() is a jQuery function, takes HTML element p as a parameter which is known as a selector, and hide () function hides the p sele