Christof Donat wrote:
> Hi,
>
>> OK, how about:
>>
>> var arr = $("li").toString().split(',');
>
> How can that work with DOM Objects?
>
> 1. I can not find toString() in jQuery. I guess it will return something
> like "[object]".
Since the jQuery new returns a array (see John's mail: "[jQuery]
Functional jQuery as an Array"), it uses the built in toString function
of the Array object.
> 2. Splitting a string creates an array of strings, not an array of DOM nodes.
I know, i thought you wanted to sort the array? :)
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/