我试图从另一个表中映射一行的tabledata,但我不知道如何到达那里。jQuery dom遍历嵌套表
我试过的东西:
$('.order_info .active').closest('tr').prev('tr').children('td').map(function(){
return $(this).text();
}).get();
$(this).find('.order_info .active').closest('tr').prev('tr').children('td').map(function(){
return $(this).text();
}).get();
,但没有运气。
这就是DOM的外观和从哪里去我需要去的地方。
您可以添加HTML结构? –
尝试父母并不是最接近 –
@MikeB:不,它不会。 –