How do I create a jQuery plugin so that I can use namespaces in my plugin ?
$(\"#id1\").amtec.foo1(); $(\"#id1\").amtec.foo2();
None of th
(function($) { $.fn.amtec = function () { var jq = this; return { foo1: function(){ return jq.each(function(){}); }, foo2: function(){ return jq.each(function(){}); } } }; })(jQuery);