JSFiddle - React, Tailwind, and code Playground
by kentaromiura
HTML
<div id="1">one</div>
<div id="2">two</div>
<div id="3">three</div>
JavaScript
jQuery.fn.reverse = function() {
return Array.prototype.reverse.apply(this);
};
$('div').reverse().each(function() {
alert(this.innerHTML);
})