page

Gets or sets the current page of the pager. If the parameter is used the pager selects the passed page number. When the function is called without parameter the current page number is returned.

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

    function getCurrentPageNumber() {
        return $("#pager").swidget().page();
    }  

    function setCurrentPageNumber() {
        $("#pager").swidget().page(2); // Page to the second page
    } 

    </script>