I need to implement the functionality of jQuery\'s prevUntil() method in Vanilla JavaScript.
I\'ve got several elements on the same level: 相关标签:
elements on the same level: 相关标签:
There is a previousSibling property in the HTML DOM
Here is some reference
http://reference.sitepoint.com/javascript/Node/previousSibling