jQuery pseudo selector with variable as selector
<p>I've set a variable equal to a frequently-referenced selector:</p>

<pre><code>var allSteps = $("#makeIntoSlideshowUL &gt; li");
</code></pre>

<p>Additionally, I'm using a custom-defined search function that makes contains (which I'm using to search) case-insensitive</p>

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

<p>Without using the variable selector, I can do this</p>

<pre><code>$("#makeIntoSlideshowUL &gt; li:Contains('" + $(this).val() + "')").css("display","block");
</code></pre>

<p>How do I use the variable selector and this defined psuedo selector together?  I've tried this, but it doesn't work</p>

<pre><code>allSteps+":Contains('" + $(this).val() + "')".css("display","block");
</code></pre>
