views:

41

answers:

1

I am working with http://plugins.jquery.com/project/pagination and want to have the pagination applied to both top and bottom of the page. Is there any way to make this happen?

Edit - Solution Full Code

$("#pagination").pagination(data, {
    num_edge_entries: 2, 
    num_display_entries: 8,
    items_per_page: 5,
    next_show_always: false, 
    prev_show_always: false,

    callback: function(page_index, jp){
            $.get("ajax.php?n="+page_index, function(data){
                $("#content").empty().append(data);
            });
        }

        var paginationClone = $("#pagination > *").clone(true);
        $("#paginationbottom").empty();
        paginationClone.appendTo("#paginationbottom");                
        return false;
    }
});
+1  A: 

Update:

A possible workaround is at this SO answer.

Essentially tweak the callback to clone one paginator to the other.


Ability to do this is apparently a "critical" feature request.

Brock Adams