3
Use append to create numbering:
$("#navigation").append("<li class='waves-effect' id='page_" + (i + 1) + "'>" + "<a>" + (i + 1) + "</a></li>");
I have specific css for each pagination number below:
$("#page_1").addClass('at')
$("#page_2").addClass('at')
$("#page_3").addClass('at')
$("#page_4").addClass('ap')
$("#page_5").addClass('ap')
$("#page_6").addClass('ts')
$("#page_7").addClass('tc')
Does anyone know how to make it more dynamic with the same operation? How do I select #page_1, #page_2 etc...? Thanks
What is the criterion for determining the classes?
– lfarroco