Arrangement of divs


I need to create a simple page, my problem is that I need an array array of divs with class .pagina but how should I declare it and go through to identify if it is the page that should be shown or otherwise hide.

globa: let currentPages = $(".page").length - 1

//Array de elementos de pagina

next button:

paginaActual ++
for(let i=0; i< currentPages; i++){
 if(paginaActual == array[i]) //mostrar

How should you create an array of divs with class elements .pagina

asked by DoubleM 29.11.2018 в 19:09

0 answers