$('element').filter(function() { return $(this).text() == 'text'; }