On key press i am searching through a table to display values , but how to make this work irrespective of case insensitive
$(document).ready(function()
{
$('#filter').on('input', function()
{
var val = $.trim(this.value).toLowerCase();
var tr = $('#tagstable tbody td');
el = tr.find('label:contains(' + val+ ')').closest('td')
tr.not(el).fadeOut();
el.fadeIn();
})
});