Search text no matter if is in lower or upper case
<p>I have a function that I use to search content in my web using one text box <code>&lt;input class="form-control" id="search" type="text" placeholder="Search" /&gt;</code> the showing content are in different panels, so this is my <code>script</code>.</p>

<pre><code>$('#search').keyup(function () {
    var term = $(this).val();
    if (term != '') {
        $('.panel').hide();
        $('.panel').filter(function () {
            return $(this).text().indexOf(term) &gt; -1
        }).show();
    } else {
        $('.panel').show();
    }
});
</code></pre>

<p>That works fine but only with the exactly match, if I write in the text box <code>Hello</code> shows me only the <code>Hello</code> words but I need that shows me to <code>hello</code>, <code>hEllO</code> or <code>HELLO</code>, all the string no matter the lower or upper case.</p>

<p>Any help is really appreciated, sorry for my bad grammar.</p>