I use append to create numbering:
$("#navigation").append("<li class='waves-effect' id='page_" + (i + 1) + "'>" + "<a>" + (i + 1) + "</a></li>");
below I have specific css for each page number:
$("#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 this more dynamic with the same operation? How do I select # page_1, # page_2 etc ...? Thank you