I have an anchor tag with text and I want to check if the given var matches the string exactly.
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.
Any ideas ?
function test(submenu){
$('a:contains("' + submenu + '")', 'ul.subMenu li').css('font-weight', 'bold');
}