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/

Reply via email to