I have a span with a certain class and I want to check if it contains it and hide another element.
To be more specific I have:
<span class="border">0€</span>
<div class="pop">something</div>
I tried the code but unfortunately it does not work.
if ($(".border").html().indexOf("span") == 0€ ){
$("div[name=pop]").hide()
}
Looking forward hearing from you.