nexts
Using the nexts
property, you can easily get all the adjacent element instances that come after the current element, and these elements will be returned as an array.
<script src="https://cdn.jsdelivr.net/gh/kirakiray/ofa.js@4.5.26/dist/ofa.min.js"></script>
<ul>
<li>I am 1</li>
<li id="target">I am target</li>
<li>I am 3</li>
<li>I am 4</li>
</ul>
<script>
setTimeout(()=>{
$('#target').nexts.forEach(e => e.text = 'change text');
},500);
</script>