Selectors are the entity which we used to select  HTML elements from web page in jQuery. Selector in jQuery always start with dollar($)sign and parentheses like as $().
There are three ways to select the elements in a web page.
1) Select elements by tag name
Example- $(select)  It will select all the select type elements in the page.
2) Select elements by id
Example- $('#mybox')  It will select the element having  id mybox in the page.
3) Select elements by class name
Example- $('.check')  It will select the elements having class  check in the page.
                       
                    
0 Comment(s)