Checking if parent element is button while divs in for loop

后端 未结 0 890
小鲜肉
小鲜肉 2021-01-25 05:18

I need to check; if a button is exists before content div. How can I do this with pure javascript? I did try parentElement.TagName and parentNode.TagName but did\'t worked. My e

相关标签:
回答
  • 消灭零回复
提交回复
热议问题