[jQuery] Re: efficient way to find a parent

2009-05-11 Thread jquerysk
Thanks

[jQuery] Re: efficient way to find a parent

2009-05-06 Thread mkmanning
.parent() gets you the immediate parent of the element, .parents() traverses up through all ancestors, so you could use .parents('.user') and it wouldn't matter how deep you nest the link. You can also use .closest(), which finds the closest parent that matches the specified selector: $(this).clo