[jQuery] Re: Gathering List innerHTML into a string

2007-05-21 Thread SamCKayak
Thanks. This gives me all I need. Sam

[jQuery] Re: Gathering List innerHTML into a string

2007-05-21 Thread Jake McGraw
var str = []; var cnt = 0; $("li").each(function(){str[cnt] = $(this).text();cnt++;}); alert(str.join(";")); this is the first thing that came to my head, probably a better way to do this. - jake On 5/21/07, SamCKayak <[EMAIL PROTECTED]> wrote: I have an unordered list, each list element con

[jQuery] Re: Gathering List innerHTML into a string

2007-05-21 Thread SamCKayak
Here's a simpler problem... If I have a jQuery object which holds an array of elements, e.g., $('li') Is there a way to collapse the innerHTML of that array into a string of concatenated text? Sam