[Fixed]-Jquery :not selector doesn't work with style on class

1👍

You should watch out what your templating system is doing with your JavaScript code.

IMHO this could work better:

$(".products:not(#p" + {{ currentpagen }} + ")").css("display", "none"); 

The result should be this:

enter image description here

👤gus27

Leave a comment