this is kind of a global question :
When you create a custom jQuery function using $.fn.foo = function(){}
and let's say we apply this function to $("#foo") just like $("#foo").foo():
How can we refer to $("#foo") in the function independently from its "absolute name" ?
I tried using $(this) but the console spew an error at me :
Ignoring get or set of property that has [LenientThis] because the "this" object is incorrect.
this?thissolved my problem thx !