 <pre><code>$('ul#accordion a').filter(':contains(' + bctext + ')' </code></pre> <p>is now preferred to the <a href="http://docs.jquery.com/Release:jQuery_1.2#Removed_Functionality" rel="nofollow noreferrer">deprecated</a> </p> <pre><code>$('ul#accordion a').contains(bctext); </code></pre> <p>(as commented by Crescent Fresh)</p>