Check the code inside MooTools SilverTab. We use this technique all
over. (also, FYI, that's the whole point of the $ function, to be
able to pass a string id, or an element to be extended)
this.element = $(element);
On Oct 12, 2008, at 2:50 PM, Rajeev J Sebastian wrote:
On Sun, Oct 12, 2008 at 11:47 PM, SilverTab <[EMAIL PROTECTED]> wrote:
Rajeev: Would this work if the argument (el) is the dom element
itself
and not its id? I was only doing it that way so that the user can
pass
either the element's id or the element itself...
Yes, it will work.
Regards
Rajeev J Sebastian