jQuery selector where text = some value

后端 未结 9 1151
爱一瞬间的悲伤
爱一瞬间的悲伤 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:52

    You might consider using the hide() / show() methods as well.

    $(".js-rating-labelText:contains('unrated')").hide()
    

提交回复
热议问题