Created
September 5, 2011 02:42
-
-
Save hrstt/1193939 to your computer and use it in GitHub Desktop.
jQuery: 複数オブジェクトの逆順並べ
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