$('body').on('click', function(e) {
e.preventDefault();
if ($(e.target).is('#device-btn') || $(e.target).is('.filter-icon') || $(e.target).is('#search-dev') || $(e.target).is('.search-li') || $(e.target).is('.search-container-c .input-row')) {
$('#device-btn').closest('.filter-row').find('.search-container-c').addClass('db');
} else {
$('#device-btn').closest('.filter-row').find('.search-container-c').removeClass('db');
};
});