How to make a jQuery plugin which needs some methods but doesn't need a selector like the following example?
$.plugin.method(param);
How to make a jQuery plugin which needs some methods but doesn't need a selector like the following example?
$.plugin.method(param);
 
    
    Finally found the answer,
// jQuery Plugin Syntax
(function ($) {
    $.plugin = {
        method: function(param) {
            alert(param);
        };
    };
}(jQuery));
Now you can call it this way:
$.plugin.method("Hello World!");
