I want to find the nth parent element of an given element and access the attributes of parent.
4条回答 北荒 (楼主) 2020-12-24 11:24 use: $('#element1').closest('#parent1'); 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
use:
$('#element1').closest('#parent1');