🔥 Get 650+ Tech Books and Courses for $3/m for 3 months

jquery .each backwards (reverse it)

Sam Deering
Share

Quick jQuery snippet to reverse each to loop over elements backwards. Example shows effect on loop over a list backwards.

$($("li").get().reverse()).each(function() { /* ... */ });