I have some code like this
if ($('.lblpricefrom > strong').html() == '£'){
$('.lblpricefrom').parents("div.resultsitem").hide();}
But it seems to be hiding items with the class lblpricefrom
even if the html within = £456
I need it to only hide the items with the class lblpricefrom
if the html within specifically = just £
and thats it
Thanks
Jamie
UPDATE
this works
$('.lblpricefrom > strong').each(
function(){
if($(this).html() == '£'){
$(this).parents("div.resultsitem").hide();
}
});
Thanks to Thomas Clayson