[jQuery] Update to 1.1 question
Hi, thanks for 1.1, great I have the funktion changed to work in 1.1: $('textarea').each(function(i) { $(this).attr({ id: txtarea_'+i+' }) . and so on How i must given the dynamic i append to the ID? All what i do give me back i and not the the number! -- Viele Grüße, Olaf --- [EMAIL PROTECTED] http://olaf-bosch.de www.akitafreund.de --- ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Update to 1.1 question
On 1/15/07, Olaf Bosch [EMAIL PROTECTED] wrote: Hi, thanks for 1.1, great I have the funktion changed to work in 1.1: $('textarea').each(function(i) { $(this).attr({ id: txtarea_'+i+' }) . and so on How i must given the dynamic i append to the ID? All what i do give me back i and not the the number! This is not associated with 1.1 version, you could: $('textarea').each(function(i) { $(this).attr('id', txtarea_+i) } You donot must pass {} to attr. -- I like python! UliPad The Python Editor: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Update to 1.1 question
limodou schrieb: This is not associated with 1.1 version, you could: $('textarea').each(function(i) { $(this).attr('id', txtarea_+i) } Thanks works on perfect. I have to scroll on docs!!! ;) -- Viele Grüße, Olaf --- [EMAIL PROTECTED] http://olaf-bosch.de www.akitafreund.de --- ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/