On 27/04/2007, at 9:10 AM, Josh Nathanson wrote:
I want to select the first parent of my selection that is a td element. How do I do that?I don't want parent(), since the number of parents in between may vary, or parents(), since I don't want to select ALL the td's that are up the hierarchy. Just the first parent that's a td.
Does this work? $(childEl).parents("td:first"); Joel.