I am working on a JQuery plugin. I am quite confused with how to use this jQuery plugin. How can I call a jQuery plugin function outside the plugin?
Here is my plugin code:
(function ($) {
function _setValue(self, value) {
....
}
//Other functions
$.fn.inputpicker = function (method) {
if (!this.length) return this;
if (typeof method == 'object' || !method) {
return methods.init.apply(this, arguments);
}
else if (methods[method]) {
return methods[method].apply(this,
Array.prototype.slice.call(arguments, 1));
}
else { $.error("Method " + method + " does not exist on
jQuery.inputpicker"); }
}
});
You can find the whole plugin here.
Now, How can I use _setValue function in my own codes?