How to select all anchor tags with specific text

Posted by geoff on Stack Overflow See other posts from Stack Overflow or by geoff
Published on 2010-03-15T12:13:53Z Indexed on 2010/03/15 12:19 UTC
Read the original article Hit count: 182

Filed under:
|
|
|

Given multiple anchor tags:

<a class="myclass" href="...">My Text</a>

How do I select the anchors matching the class and with some specific text. eg Select all anchors with the class:'myclass' and text:'My Text'

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html