$(function(){
var mas = [];
var str = '';
$('.search').each(function() {
mas.push($(this));
});
$('#search').on('input', function(){
var search = $('#search').val().toLowerCase();
mas.forEach(function(item){
str = item.find('td').data('search') || "";
str = str.toString().toLowerCase();
if(~str.indexOf(search)){
item.show();
}else{
item.hide();
}
});
});
});