jQuery selector where text = some value

后端 未结 9 1116
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-03 17:12

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

9条回答
  •  無奈伤痛
    2020-12-03 17:41

    Perhaps the issues is with the :contains('Unrated') part of the function. As changing the text to any random value produces the same result:

    $("#ratingDiv:contains('somerandomtext')").hide();
    

提交回复
热议问题