[jQuery] Pagination plugin (and jquery plugin instances in general)

[jQuery] Pagination plugin (and jquery plugin instances in general)


I'm using the pagination plugin at the top and bottom of a list.
Works great, except that the two instances are independent. Clicking
on page "3" in the one pagination instance will not change the other.
I've thought of various solutions/workarounds, but they all involve
getting access to the pagination instance. Is this possible?
Here's some sample code...
$(document).ready(function() {
// there are two divs of class pagination.
$('div.paging').pagination(list.length, {callback(pg):
drawpage(pg);});
// so how can i access or call a method on these instances?
// assuming that the divs have the ids #pager1 and #pager2
// is there a way to access the pagination instance from jquery
internals?
});
-j