sorry, james i didn't see someone answer me.
what i want to do is ('div').set_of_plugins.choosen_plugin(). where
the first level (set_of_plugins) is kind of container (namespace) of
all my plugins. is it possible to do it?

On Oct 28, 5:20 pm, James Dempster <[EMAIL PROTECTED]> wrote:
> There is already a jQuery .parent() method.
>
> Not quite sure what your trying todo. But each method is run in the
> context of the selected elements.
>
> e.g.
>
> jQuery.fn.extend({
>     test: function() {
>         return this.each(function() {
>            // do something with elements
>         });
>     }
>
> });
>
> would do something with all the selected elements via test. $
> ('div').test()
>
> /James
>
> On Oct 27, 8:49 pm, Jean-Sébastien <[EMAIL PROTECTED]>
> wrote:
>
> > Hello,
>
> > i want to call a function $('#selection').parent.child()
>
> > with the following code :
>
> > jQuery.fn.extend({
> >   parent: {
> >     child: function(o){ doSomethingWith(selectedElement) }
> >   }
>
> > });
>
> > but i dont know how to pass the selected element through parent
> > (#selection) to child function.
>
> > regards.

Reply via email to