cross talking plugins

Prathihaas

New Member
My first Jquery Plugingiven this example below\[code\](function($){ $.fn.pluginA = function(){ var abc = 'it works'; }; $.fn.pluginA.someMethod = function(){ return abc; }; $.fn.pluginB = function(){ // how to call someMethod properly // console.log( $.pluginA.someMethod() ) };})(jQuery)\[/code\]My goal is basically to have a sort of helper plugin
Am I doing this right?
Am I missing something?
 
Top