Skip to content

Instantly share code, notes, and snippets.

@r4hulp r4hulp/each.js
Last active Dec 11, 2018

Embed
What would you like to do?
JQuery reverse iteration
for( i =  $('li').size(); i>= 0 ; i--){
$('li').eq(i).someSuperLogicHere;
}
$('li').reverse().each( function() {
// YOUR SUPER LOGIC HER
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.