I want to select all the elements that have the two classes a and b.
a
b
So, only the e
You can do this using the filter() function:
$(".a").filter(".b")