JavaScript
Article
By Sam Deering

jQuery reverse array of DOM elements

By Sam Deering

Quick jQuery code snippet a bit like jQuery.each backwards I suppose. Could come in handy to loop through elements backwards.

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

    interesting :)

Recommended
Sponsors
Get the latest in JavaScript, once a week, for free.