$(function () { // Set pageIndexChanged event handler function $(".selector").wijpager({ pageIndexChanged : function (e, args) { } }); });
Parameters
- e
- The jQuery.Event object.
- args
- The data associated with this event.
$(function () { // Set pageIndexChanged event handler function $(".selector").wijpager({ pageIndexChanged : function (e, args) { } }); });
// Supply a callback function to handle the event: $("#element").wijpager({ pageIndexChanged: function (e, args) { // Handle the event here. } }); // Bind to the event by type: $("#element").bind("wijpagerpageindexchanged", function (e, args) { // Handle the event here. }); // You can also use this event to get the selected page by using the args.newPageIndex parameter: $("#element").wijpager({ pageIndexChanged: function(e, args) { var selectedPageIndex = args.newPageIndex; } });