I have an object (in this case a rating object from js-kit) that I want to make invisible if the rating value is \'unrated\'. I\'m having trouble with getting the right jQue
Is there another way to select an element based on the text contents?
Try this:
$('.js-rating-labelText').filter(function(){ return (/unrated/i).test($(this).text()) }).css('visibility', 'hidden');