>> But, to my mind, it makes sense to do
>> $('#myElement').parent().parent() because the parent of the <input> is 
>> a <td> and the parent of the <td> is the <tr>.  Or is that wrong?
>
> No, you're right - On first glance I thought it was <td id="myElement">
... 
> </td> sorry about that. Not sure why .parent('tr') didn't work, though.

Doesn't .parent() only look up one level? I thought you'd use .ancestors().


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to