2009/11/10 Karl Swedberg <k...@englishrules.com>

> On Nov 10, 2009, at 7:58 AM, Michel Belleville wrote:
>
>
>    - $(el).parents('div').get(0).addClass('myClass'); // should work, may
>    be a testing error (just tested it, worked for me)
>
> Interesting that this one worked for you. I wouldn't expect it to, since
> the .get() method is supposed to return a DOM element (when an index is
> passed in), and addClass should only operate on the jQuery object.
>

Sorry, mistook .get() for .eq() wich is another thing altogether indeed
(yeah, I should not rewrite when I test).

>
Michel Belleville

Reply via email to