Skip to content

Instantly share code, notes, and snippets.

@r4hulp
Last active December 11, 2018 06:47
Show Gist options
  • Save r4hulp/3aff08e98e767e077e894c8203e29402 to your computer and use it in GitHub Desktop.
Save r4hulp/3aff08e98e767e077e894c8203e29402 to your computer and use it in GitHub Desktop.
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