How can I reverse an order with jquery?
I tried with the suggestion like this but it won\'t work!
$($(\".block-item\").get().reverse()).each(function() {
try this:
function disp(divs) { var a = []; for (var i = 0; i < divs.length; i++) { a.push(divs[i].innerHTML); } alert(a); } disp( $("div.block-item").get().reverse() );