Development tips, help, and suggestions for building performant websites
jQuery – Reverse Each
There may be some situations where you need to step through dom elements in reverse order, in this case the following code should help you:
jQuery(jQuery('div.child').get().reverse()).each(function(i) {
//do stuff
});
Example html:
<div class="parent">
<div class="child">A</div>
<div class="child">B</div>
<div class="child">C</div>
</div>

