What are different selectors in jQuery used for?

There following selectors in jQuery is used as:

$(‘div’) is used for selection all div tags in the document, $(‘#TextId’) is used for selecting elements whose ID is TextId and $(‘.myclass’) is used for selecting all elements whose class is .myclass.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *