I already tried to do some research and did not find anything, but if I missed the answer, please tell me. Basically I have several elements with several classes each, but the combinations are unique. I want to select a specific combination of classes, but not other elements that have these elements in combination with others.
I would like to know if this selector exists in jQuery or is there some other way to accomplish what I explain. See the example below:
<div class="abc"></div> <div class="abcd"></div> <div class="abcd">/div>
When trying to register only an element with abc classes, I tried to use:
$('.abc').each( function() { console.log($(this)); }
output:
[ <div class="abc">...</div> , <div class="abcd">...</div , <div class="abcd">...</div> ]
I am looking for a way out:
[ <div class="abc">...</div> ]
Any guidance is appreciated. Thanks!
source share