Uncaught Syntax error, unrecognized expression: Contains
<p>So I'm using:</p>

<pre><code>    jQuery.expr[':'].Contains = function(a, i, m) { 
  return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase()) &gt;= 0; 
};

function detectResults() {

    if ($("#clientList:visible").length == 0) {
        $("#clientList").hide();
        $("#noRecords").show();
    } else {
        $("#noRecords").hide();
    }
}
//End Search Clients Result Detection
$("document").ready(function() {
        //Search Clients 
    $("#searchClients").keyup(function(e) {

        var query = $("#searchClients").val();

        $("#clientList div").hide(1, function() {
            $("span.firstname:Contains('"+query+"')").parent().show();
            console.log('Show Results');
        });

        setTimeout("detectResults()", 100);
        console.log('Search Keyup');

        return false;

    });
    //End Search Clients
    });
</code></pre>

<p>But everytime I keyup in the searchClients bar I get an uncaught syntax error.  Anyone know what this might be?</p>
