I have a paging plugin done in jQuery. What I can not do is when I'm on the last page, the link that gives access to the next page is disabled and the user can not click any more. In the same way the button gives access to the previous page. I already followed some tips, like inserting "disable" but this does not work. Add the "little hand" in the link but you can still click. The following method was created to customize the two link's
function tagNextPrev() {
if($nav_panels.children('.last').hasClass('active_page')){
$nav_panels.children('.next_link').add('.last_link').removeClass('.next_link').addClass('no_more');
} else {
$nav_panels.children('.no_more').add('.last_link').removeClass('no_more');
}
if($nav_panels.children('.first').hasClass('active_page')){
$nav_panels.children('.previous_link').add('.first_link').addClass('no_more');
} else {
$nav_panels.children('.previous_link').add('.first_link').removeClass('no_more');
}
}