jqPagination Test Fiddle

A starter for anyone wanting to test their jqPagination issues, plugin JS + CSS have already been included, along with jQuery 1.6.4

HTML

<script src="https://raw.github.com/beneverard/jqPagination/master/js/jquery.jqpagination.min.js"></script>
<link rel="stylesheet" href="https://raw.github.com/beneverard/jqPagination/master/css/jqpagination.css">
<!-- this fiddle has jQuery and jqPagination already included -->
<!-- clock fork above then add your html, css and javascript below -->

<div class="pagination">
    <a href="#" class="first" data-action="first">&laquo;</a>
    <a href="#" class="previous" data-action="previous">&lsaquo;</a>
    <input type="text" readonly="readonly" data-max-page="40" />
    <a href="#" class="next" data-action="next">&rsaquo;</a>
    <a href="#" class="last" data-action="last">&raquo;</a>
</div>

JavaScript

$('.pagination').jqPagination({
    paged: function(page) {
        alert('Do something, the user has requested page ' + page);
    }
});