*boggle*. Ill have to study that.  Looks complicated.

Glen


On 7/9/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:


Klaus Hartl wrote:
>
> Glen Lipka wrote:
>> var myString = "";
>>
>> $("#container .item").each(function(i){
>>   myString = myString + "," + this.id <http://this.id>;
>> });
>>
>> $("#myInput").val(myString);
>>
>> Hope this helps.  Glen
>
> I like oneliners:
>
> var ids = $.map($('#container [EMAIL PROTECTED]'), function() { return 
this.id;
> }).join(',');


Setting the value was missing:

$("#myInput").val( $.map($('#container [EMAIL PROTECTED]'), function() { return
this.id; }).join(',') );


--Klaus

Reply via email to