Simply:
(function($){
$.fn.plugin = function()
{
}
})(jQuery);
Error (copied from the Chrome console):
Uncaught TypeError: Object function ( selector, context ) {
return new jQuery.fn.init( selector, context, rootjQuery );
} has no method 'plugin'
What rules should I follow to make my plugin without selecting an item?
source
share