hi my friend I want to create search box and I want when anybody typing any word start searching and console result it.
this is my code:
<input type="text" id="search"> //search input
<ul id="all">
<li><span>Andro</span></li>
<li><span>andre</span></li>
<li><span>Marcos</span></li>
<li><span>mamaaaaa</span></li>
<li><span>louis</span></li>
</ul>
jQuery
var $all = $('#all');
$('#search').on('keyup', function() {
$all.find('li').hide();
//I want check span value with enter any key
//(point: span value should to be lowerCase)
});
please guide me how to lowerCase spans value and check lowerCase typing any word