2
I would like to assemble a system that automatically does the paging with only the jQuery/Javascript with the Rows I get.
The Server can return me 1 Row as it can return me 1 million, and jQuery needs to organize these Rows by hiding all Rows except the last 2. For example it returns me these 5 Rows
<div class="MSGR">Bom dia</div> --> NAO MOSTRAR
<div class="MSGR">Bom dia</div> --> NAO MOSTRAR
<div class="MSGR">Bom dia</div> --> NAO MOSTRAR
(ainda tem 3 opçoes SR.USUARIO)
<div class="MSGR">Bom dia</div> --> MOSTRAR
<div class="MSGR">Bom dia</div> --> MOSTRAR
It will show the last 2 Rows and the rest will simply hide.
Above the shown Rows there must be a knob to show MORE Rows.. a "load more" that shows two by two always showing how many Rows are left to display... This load more button must exist as long as Rows exist, when all are displayed it has no function and must be hidden.. Type the Facebook Messenger that Voce pulls messages from top to bottom and is displayed from X to X messages until finished.
How would it be just 2 out of 2?
– Maicon Carraro
@Maiconcarraro showed two Ivs but still 5 he will only show two of these five is so will..
– Vinícius Lara
possible duplicate of Show/hide each element within a toggle class (jquery)
– Maicon Carraro
@Maiconcarraro doesn’t have much sense, it has to do with it but it’s not, it’s a pagination and not a "menu"
– Vinícius Lara
but the basis is the same, no?
– Maicon Carraro
@Maiconcarraro I believe that it is not necessary to organize the received Rows and work with them and not work with fixed points. See the edition.
– Vinícius Lara