Home > DeveloperSection > Interviews > What are jQuery Class Selectors and ID selectors Explain them?

Posted on    October-17-2011 2:15 AM

 JQuery JQuery 
 1 Answer(s)
  2358  View(s)
Rate this:

Arun Singh

Total Post:310

Posted on    October-17-2011 12:00 AM

jQuery selectors  allows to easily identify set of page elements for performing user friendly or required operations .

Class Selector (.) :
A class selector is to identify class to search for. An element can have multiple classes. There is no restriction.  Operations are applied based on the class that matches.

ID Selector (#) :
An element can be selected or indentified based on id.  It Matches a single element with the given id attribute.

Don't want to miss updates? Please click the below button!

Follow MindStick