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