Hi,
is there a better way to check if sliced elements has class
PHP Code:
var wrapPage = function(items){
    
console.log(items.closest('.page-wrapper').length);
 };
wrapPage($panels.hide().slice(0,10).show()); 
I need that beacuse I want to wrap elemts like
PHP Code:
$panels.hide().slice(0,10).show().wrapAll('<div class="page-wrapper" />'
Bye