jQuery text match
<p>I have an anchor tag with text and I want to check if the given var matches the string exactly.</p>

<p>This works, but I would like to use something other than contains, since it will match two elements if the contain the given string. I want it to match exactly.</p>

<p>Any ideas ?</p>

<pre><code>function test(submenu){
$('a:contains("' + submenu + '")', 'ul.subMenu li').css('font-weight', 'bold');
}
</code></pre>
