0

Using JQuery .each() backwards

$("li").get().reverse()

$($("li").get().reverse()).each(function(item, el) { 
	console.log($(el).html());
});
<ul>
   <li>Item 1</li>
   <li>Item 2</li>
   <li>Item 3</li>
   <li>Item 4</li>
   <li>Item 5</li>
</ul>
RUN
add comment
Suggest a different solution or add another example