How do I create a subclass ? (function($) { $.fn.myname = function(){ return this.each(function(){ }); } })(jQuery);
(function($) { $.fn.myname.subname = function(){ return this.each(function(){ }); } })(jQuery); $("#id1").myname.subname(); I get this.each is not a function