[jQuery] Group selectors and apply one filter.

2008-03-06 Thread apramanik
Hi all, I'm new to JQuery and want to do the following: Given the following html: div id=parent div/div div/div div/div div/div span/span a/a /div I want to select the last 'div' or 'span' child of div using the ':last' filter. Is this possible? Something like: $( '#parent ).children(

[jQuery] Re: Group selectors and apply one filter.

2008-03-06 Thread apramanik
('span,div').slice(-1); Ariel Flesler On 6 mar, 14:37, apramanik [EMAIL PROTECTED] wrote: Hi all, I'm new to JQuery and want to do the following: Given the following html: div id=parent div/div div/div div/div div/div span/span a/a /div I want to select the last