Good afternoon guys, I'd like to include the option for my search, I've already tried it:
var $search = $("#search").on('input, option',function(){
$btns.removeClass('active');
var matcher = new RegExp($(this).val(), 'gi');
$('.box').show().not(function(){
return matcher.test($(this).find('.name, .sku, .local').text())
}).hide();
})
But I did not succeed.