I have a list of nodes:
<div id="node-1"></div>
<div id="node-2" class="current"></div>
<div id="node-3"></div>
<div id="node-4"></div>
<div id="node-5"></div>
How can I with Zepto get all nodes 3-5, when using $(".current") as selector (node-2)?
Not according to the documentation, which has a notable gap after
nextand beforenot.This would suggest you’ll need a loop, e.g.:
That use of
addwould work with jQuery. Zepto’s docs claim that “APIs provided match their jQuery counterparts“ (their boldface), but theadddocs only talk about using a selector, so you may have to play with that a bit.