Skip to content

Instantly share code, notes, and snippets.

@Usse
Created December 3, 2012 13:19
Show Gist options
  • Save Usse/4195002 to your computer and use it in GitHub Desktop.
Save Usse/4195002 to your computer and use it in GitHub Desktop.
jQuery backward each
jQuery.fn.reverse = [].reverse;
$(elements).reverse().each(function(index,item) {
//...some awesome code
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment