get array index when traversing backwards jquery code example
Example: jquery loop through collection backwards
$($("li").get().reverse()).each(function() { /* ... */ });
$($("li").get().reverse()).each(function() { /* ... */ });