Skip to content

Instantly share code, notes, and snippets.

@hrstt
Created March 8, 2012 02:00
Show Gist options
  • Save hrstt/1998014 to your computer and use it in GitHub Desktop.
Save hrstt/1998014 to your computer and use it in GitHub Desktop.
複数オブジェクトの逆順並べ ref: http://qiita.com/items/3062
$(function(){
// same class name jQuery object
$('div.some_class');
// these reverse indices jQuery object
// Once get indexed objects to array,
// Then use Array.reverse() to descending order.
// At last, convert array object to jQuery object.
$($('div.some_class').get().reverse());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment