Say I have 2 divs:
<div>£ 21.99</div>
<div>£</div>
If I only want to select the div that contains the £ symbol only, how would I go about this?
I have tried:
if ($('div:contains("£")').length > 0)
{
$(this).addClass("pound");
}