> I've come across a number of possible uses for a new  
> :first-visible-child, :last-visible-child, :nth-visible-child,  
> :nth-last-visible-child, etc.
> 
> The current best way to achieve that effect is:
>
> $(expr).each(function() { $("> whatever:visible:last") }
> for :last-visible-child, for instance. 

It's too bad CSS doesn't allow parenthetical grouping and distributive
operations. If it did you could say this:

 expr(>whatever:visible:last)

XPath seems to only support parens for boolean expressions and not for
selector grouping, so I don't think you can say this in XPath either:

 //expr(/whatever:visible:last)

In any case, jQuery doesn't support parens in selectors so it's kind of
academic. But I do wonder why neither syntax allows it.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to