Created
March 8, 2012 02:00
-
-
Save hrstt/1998014 to your computer and use it in GitHub Desktop.
複数オブジェクトの逆順並べ ref: http://qiita.com/items/3062
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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