Select An Element With Multiple Classes In Jquery




Here we consider how to Select An Element With Multiple Classes.

Situation :- If we have two or more elements with two or more same Classes.

So only those elements with same classes needs to be selected. For example, if we have two labels with same classes a and b as shown below.

Select An Element With Multiple Classes In Jquery, Select An Element With Multiple Classes, Select A Div With Multiple Classes, Select A Table With Multiple Classes, Select With Multiple Classes In Jquery, Multiple Classes In Jquery, Handle Multiple Classes In Jquery, JQuery

In the above case, we can select labels having class a only as follows.

$('.a')


What if if we have to select lables with classes a and b.
For that, we can follow below method.

$('.a.b')


That's only, by this way we can Select An Element With Multiple Classes.