[jQuery] Re: efficient way to find a parent
Thanks
[jQuery] Re: efficient way to find a parent
.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