[jQuery] Re: how can i get only the id's of a container's child elements

2007-07-09 Thread Klaus Hartl
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;

[jQuery] Re: how can i get only the id's of a container's child elements

2007-07-09 Thread Klaus Hartl
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

[jQuery] Re: how can i get only the id's of a container's child elements

2007-07-09 Thread Glen Lipka
*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);

[jQuery] Re: how can i get only the id's of a container's child elements

2007-07-09 Thread Klaus Hartl
Glen Lipka wrote: *boggle*. Ill have to study that. Looks complicated. Glen Glen, it's not complicated at all :-) I'm using jQuery's $.map method to translate one array - the result set $('#container [EMAIL PROTECTED]') - into another array, containing all the ids of the items in

[jQuery] Re: how can i get only the id's of a container's child elements

2007-07-08 Thread Glen Lipka
var myString = ; $(#container .item).each(function(i){ myString = myString + , + this.id; }); $(#myInput).val(myString); Hope this helps. Glen On 7/8/07, rockerzocker [EMAIL PROTECTED] wrote: First of all many thanks to the makers for this absolutly fantastic library. I just discovere