On 10/18/06, Dave Methvin <[EMAIL PROTECTED]> wrote:
>> 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
discuss@jquery.com
http://jquery.com/discuss/
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/