jQuery usage of contains and toLowerCase()
<p>I'm trying to compare a string given in an input to a div's content using jQuery <code>contain</code>.</p>

<p>Problem is, I want to be able to check if the string is contained regardless of upper/lower case.</p>

<p>This is my function:</p>

<pre><code>$(document).ready(function() {
    drawDimensions('dContent');
    $('#dSuggest').keyup(function() {
        var dInput = this.value;
        $(".dDimension:contains('" + dInput + "')").css("display","block");
    });
});
</code></pre>

<p>So if one of the .dDimension divs contains 'Date' and a user presses the 'd' key, I want to show that item.</p>

<p>is it possible?</p>
