parents(expr) is equivalent to parents().filter(expr)


SamCKayak wrote:
> 
> 
> I could do a test, but discussion seemed like it might turn up
> something else...
> 
> .parents(expr) supports an expression to filter parent elements,
> e.g.,
> 
> .parents('.getme') // returns all parents with class getme
> 
> the $(expr) in general allows any css (or xml) selector.  Does expr
> extend this way in parent(expr) to retrieve  all <li> children under a
> parent? e.g.,
> 
> .parents('.getme > li')
> 
> as a shortcut for
> 
> .parents('.getme').children('li')
> 
> Sam
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/.parents%28expr%29-tf3834650s15494.html#a10865050
Sent from the JQuery mailing list archive at Nabble.com.

Reply via email to