Add anchors to itself

Add anchors to itself

Hi,

I am creating my first plugin, the goal is to create a simple table pager. Here is a link to what I have so far:


The problem I have now: when user click on 2 or 3 at the bottom navigation, nothing happens because I can not figure out how to call the javascript the right way, I was thinking: $('#tbl1').pager(5, 2) and $('#tbl1').pager(5, 3). 

Thanks