How do I get the next element in HTML using JavaScript?(如何使用JavaScript获取HTML中的下一个元素?)
Suppose I have three<div>
s and I get a reference to one in JavaScript code, I want to get which is the next <div>
and which is the previous.(假设我有三个<div>
,我在JavaScript代码中得到一个引用,我想得到的是下一个<div>
,哪个是前一个。)
ask by Amr Elgarhy translate from so