I looked around and found a lot of questions about this, but none of the solutions work for me. I have a structure like this:
<div class="pricetag"> <div class="price">400</div> </div> <div class="pricetag"> <div class="price"></div> </div> <div class="pricetag"> <div class="price">250</div> </div>
What I want to do is hide the .pricetag where .price contains nothing. It can be many different .pricetag on one page, but I just want to hide them with empty .price.
Is this possible with jQuery? I tried many different scripts but no one worked properly.
source share