skip to Main Content

How to change the active in pagination? – Jquery

I have a pagination and I want the active class to be in color red. I have this code: script.js: $(".pagination").append("<li class='page-item' id='previous-page'><a class='page-link' href='javascript:void(0)' aria-label=Previous><span aria-hidden=true>&raquo;</span></a></li>"); $(".pagination").append("<li class='current-page active'><a class='page-link' href='javascript:void(0)'>" + 1 + "</a></li>"); for (var i =…

VIEW QUESTION
Back To Top
Search