I have some html like this
<div class="asd">
<audio src="...">
</div>
<audio src="...">
<audio src="...">
<audio src="...">
Now I need to select all of the audio elements, that don't have a parent, which has a class asd
.
I tried something like
$('audio').not('.asd');
But it returns all the audio elements.
How can I do it?