last

Selects the last page:

    <div id="pager"></div>
    <script type="text/javascript">
    $(function () {
        $("#pager").shieldPager({
            totalItems: 99,
            events: {
	            change: function (e) {
		            alert(e.currentPage);
	            }
            }
        });
    });

    function goToLastPage() {
        $("#pager").swidget().last(); // Selects the last page
    } 

    </script>