Inside the plugin this is actually the jQuery object that the plugin was
called on.

(function($) {

    $.fn.plugin = function() {
        console.log(this); // the jQuery collection/object
    };

})(jQuery);

--
Brandon Aaron


On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
>
>
>
> Ok, lets say i make a plugin using this (function())(jQuery) format and it
> works like this:
>
> $('#something').plugin();
>
> Now inside the plugin this is the access for the class, how do i access
> the
> jquery object that the plugin was called on?
> --
> View this message in context:
> http://www.nabble.com/Plugin-Question-tf4516781s15494.html#a12883523
> Sent from the JQuery mailing list archive at Nabble.com.
>
>

Reply via email to