(function ($) {
$.fn.BuildDynamicTable = function (options) {
var options = $.extend(defaults, options);
return this.each(function () {
...
GetUsers(1);
...
var GetUsers = function (pageNum) {
...
}
}); //end
};
})(jQuery);
I think try to call the GetUsers method via the below code:
var myPlugin = new $.fn.BuildDynamicTable();
myPlugin.GetUsers(1);
But this did not work?
Help?
Inside your plugin, I think your function should look like: