Hi everyone,

I am writing little plugins for helping me in my developments. Everything's ok, and easy to do, but now I'm face to face with a little problem.

I've a plugin's method like this:

[CODE]
        jQuery.fn.methodName = function(options) {
                // Code
        }
[END CODE]

The problem is that I want to know when I call the function this way:

[CODE]
        $('elemento.class').methodName();
[END CODE]

And when I call it this other way:

[CODE]
        $.fn.methodName();
[END CODE]

I need this in order to do the "this.each" thing inside the plugin's method.

Hope everything is well explained, and sorry about my poor english.

Thanks in advance.

--
Juan G. Hurtado
[EMAIL PROTECTED]


Reply via email to