<div class="block">
text
</div>
<div class="block">
text
</div>
<div class="block">
text <button />
</div>
Using jQuery, how can I remove the div containing both text and a button. I don't want to use :last
$("div:contains('text')").remove()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With