Glen Lipka wrote:
I expanded my demo page to show the different possibilities.
http://www.commadot.com/jquery/selectors/

John/Gordon, your code doesn't seem to find the grandchildren.
This one just was itching at my mind, but I think I found the perfect selector:
$("#container *").not(".notme")  //notice the *

Im not sure why children() didnt pick up the grandkids.

That's the same as like parent() doesn't pick up the grandfather...

children only picks direct child nodes, otherwise the method would have to be called descendants() I guess.



--Klaus

Reply via email to