Example:
.... < 9条回答 [愿得一人] (楼主) 2020-12-02 17:08 Here is simple way to access parent id document.getElementById("child1").parentNode; will do the magic for you to access the parent div. Master Child 0 讨论(0) 查看其它9个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
Here is simple way to access parent id
document.getElementById("child1").parentNode;
will do the magic for you to access the parent div.
Master Child