I have this code;
$('.m-shop-top-product .b-item:hidden').slice(0, 10).show();
I want to convert it into the Pure Javascript, I am not able to find equivalent Javascript code which return me all the elements which are hidden! I tried like this;
Array.from(document.querySelectorAll('.m-shop-top-product .b-item:hidden')).slice(0,10)
but it gives error as;
Uncaught DOMException: Failed to execute 'querySelectorAll' on 'Document': '.m-shop-top-product .b-item:hidden' is not a valid selector.