Suppose I have this code:
<div class="notes">
<div class="note">
<div class="inner-content like"></div>
</div>
<div class="note">
<div class="inner-content unlike"></div>
</div>
<div class="note">
<div class="inner-content unlike"></div>
</div>
</div>
What I want is to filter the like and unlike subclass.
I tried this code but no luck:
$("div.notes").filter(".note.note-inner>.like").hide();
The div that has like subclass is not hiding.
UPDATE
I want to hide the element with .note class not the one with the .inner-note like.
noteare dynamically created using loop from a model.