Plugin with public subroutine?
Dear Friends,
I write a jquery-plugin which has a function as constructor.
However - I also want to access a subroutine _after_ the constructor has been called.
The plugin itself is invoked on a page-element (like a div or something else).
After invoking I also want to call a subroutine of this plugin.
Something like this:
-
$("#test").FunnyTest({someparam:"dummy"});
$("#test").FunnyTest.SubRoutine({someparam2:"dummy2"});
Is this overally possible with JQuery at all?
Thank you for your answers in advance!
With best regards
Innocentus