Way to simplify getting all previous elements with attribute up to certain element

后端 未结 0 985
轮回少年
轮回少年 2021-02-09 06:22

I need to go up and grab the "id" attribute for each element up until the ancestor (not necessarily parent) that has an "id".

For example: The &

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