I want to select all the elements that have the two classes a and b.
So, only the elements that have both classes.
When I use $(".a, .b") it gives me the union, but I want the intersection.
If you want an intersection, just write the selectors together without spaces in between.
So for an element that has an ID of a with classes b and c, you would write:
You can do this using the filter function:
Post Your Answers
who is Best AWS Training in Noida
Packers And Movers Hyderabad Get Free Quotes Compare and Save
How to Validate Password Strength in PHP
Who is the Best Packers and Movers in Bareilly ?
Which is top online agricultural marketplace portal in India?
Who is top and best packers and Movers services provider in pune and local pune area