I'm using jQuery :contains selector to filter through some link tags. The following code works great.
$('a:contains("string")').each(function(i){
//do some stuff
});
I'd like only run this function if the anchor tags are inside a specific class, I've tried the following but it does not appear to work:
$('.my_class a:contains("string")').each(function(i){
//do some stuff
});