Given multiple anchor tags:
My Text
How do I select the anchors matching the class and wi
You could create a custom selector similar to :contains for exact matches:
:contains
$.expr[':'].containsexactly = function(obj, index, meta, stack) { return $(obj).text() === meta[3]; }; var myAs = $("a.myclass:containsexactly('My Text')");