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;
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
*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);
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
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
5 matches
Mail list logo