How to select all anchor tags with specific text

后端 未结 6 1628
隐瞒了意图╮
隐瞒了意图╮ 2020-12-12 20:21

Given multiple anchor tags:

My Text

How do I select the anchors matching the class and wi

6条回答
  •  一向
    一向 (楼主)
    2020-12-12 21:08

    I think this should work for the exact match thing..

    $("a.myclass").html() == "your text"
    

提交回复
热议问题