jQuery.expr[":"].contains = function( elem, i, match, array ) { return (elem.textContent || elem.innerText || jQuery.text( elem ) || "").toLowerCase().indexOf(match[3].toLowerCase()) >= 0; } $('#street-container a:contains('+word+')').show();