Christof Donat wrote: > Hi, > >> var $jQ = $("div"); >> for(var i=0; i < $jQ.length; i++) { >> alert(i + ':' + $jQ[i]); >> } > > He wants to sort the Array. That is IIRC not possible with the jQuery-Object > itsself.
OK, how about: var arr = $("li").toString().split(','); _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/