How about this:
$('.existing_ad .index').filter(function() {
return $(this).text() == index;
}).parents('.existing_ad');
How about this:
$('.existing_ad .index').filter(function() {
return $(this).text() == index;
}).parents('.existing_ad');