[jQuery] Group selectors and apply one filter.
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( '( div, span ):last' )
$( '#parent ).children( 'div:last, span:last' ) doesn't work and
returns the last div.
Thanks!