Easy Tutorial
❮ Traversing Parent Event Live ❯

jQuery Multiple Classes Selector

jQuery Selectors

Example

Select all elements with the class "intro", "demo", or "end":


Definition and Usage

The .class selector can be used to select multiple classes.

Note: Separate each class with a comma.

Note: Do not start the class attribute with a number! It may cause issues in some browsers.


Syntax

Parameter Description
class Required. Specifies the class of the elements to select.

jQuery Selectors

❮ Traversing Parent Event Live ❯