jQuery hide image without $somestuff in title
<p>I am trying to code a piece where thousands of image thumbnails are on a page and the users want to search for them rapidly and repetatively. </p>

<p>So turned to trusty jQuery. I have come up with the following code: </p>

<pre><code>$(document).ready(function () {
    $('input[name="search"]').keyup(function(e){
        console.log('checking...');
        var $this = $(this);

        if($this.val().length &gt; 3 || e.which == 8 || e.which == 46) {
           var check = 'img[title*="' + $this.val() + '"]';

           $.each($('.asset'), function() {
               $(this).show();
               $(this).not(check).hide();
           })

            console.log(check);
        } else {
            console.log('False');
        };
    });
});
</code></pre>

<p>Which only partially works. The bit it fails on is that <code>$(this).not(check).hide();</code> simply hides everything without selecting only the images with the search query in their title. </p>

<p>Is there a way to get jQuery to complete this task? </p>
