JSFiddle - React, Tailwind, and code Playground

HTML

<div>
    <input type="text" name="searchKeyword" placeholder="Type to search" />
</div>

<div class="imageList">
    <img src="http://skyatlantic.sky.com/image/unscaled/2011/07/25/Battlestar-Galactica-Main-1.jpg" width="200" height="200" />
    
    <img src="http://hbowatch.com/wp-content/uploads/2012/03/Battlestar-Hot-Girls.jpg" width="200" height="200" />
    
    <img src="http://digboston.com/wp-content/uploads/2012/11/battlestar-six.jpg" width="200" height="200" />
    
    <img src="http://embraceyourgeekness.files.wordpress.com/2011/10/bsg22.jpg" width="200" height="200" />
    
    <img src="http://www.n2h.it/blog/wp-content/uploads/HLIC/10098e85ca12b126eb9510ec08575b2d.jpg" width="200" height="200" />    
</div>

JavaScript

$('input').on('keyup', function(){
    $('.imageList img').not('[src*="'+$(this).val()+'"]').hide();
    $('.imageList img[src*="'+$(this).val()+'"]').show();
});