function filteredText($actualText){
        var $linesName = $('.name-pr');

        $linesName.each(function(){
            var found = 'false';
            
            $(this).each(function(){
               if($(this).text().toLowerCase().indexOf($actualText.toLowerCase()) >= 0)
                found = 'true'; 
            });

            if(found == 'true')
                $(this).closest('.card').show();
            else
                $(this).closest('.card').hide();
        })
    }
/* filtered search by product name, this is an element that stay into searchBar */
filtered search by product name, this is an element that stay into searchBar
filtered search by product name this is an element that stay into searchBar
function filteredText($actualText){
        var $linesName = $('.name-pr');
        $linesName.each(function(){
            var found = 'false';
            $(this).each(function(){
               if($(this).text().toLowerCase().indexOf($actualText.toLowerCase()) >= 0)
                found = 'true'; 
            });
            if(found == 'true')
                $(this).closest('.card').show();
            else
                $(this).closest('.card').hide();
        })
    }
function filteredText ( $actualText ) { var $linesName = $ ( '.name-pr' ) ; $linesName . each ( function ( ) { var found = 'false' ; $ ( this ) . each ( function ( ) { if ( $ ( this ) . text ( ) . toLowerCase ( ) . indexOf ( $actualText . toLowerCase ( ) ) >= 0 ) found = 'true' ; } ) ; if ( found == 'true' ) $ ( this ) . closest ( '.card' ) . show ( ) ; else $ ( this ) . closest ( '.card' ) . hide ( ) ; } ) }
filtered search by product name, this is an element that stay into searchBar
filtered search by product name this is an element that stay into searchBar