I have a page with the following code:
<div class="box1">Free</div>
<div class="box2">$100</div>
I want to check the page and every time the "box1" div contains the text "Free" to remove entirely the "box2" div.
I tried something like that with jQuery
$('.box1("Free")') {
$('.box2').hide();
}
but doesn't work. What i 'm doing wrong?