It's colons straight from the docs
http://docs.jquery.com/Attributes/attr#properties On Sep 19, 12:44 pm, Mike McNally <emmecin...@gmail.com> wrote: > On Sat, Sep 19, 2009 at 10:03 AM, adambundy <adambu...@gmail.com> wrote: > > > Your syntax is incorrect. What you want, I think, is: > > > $(this).attr({ > > 'rel','external', > > 'id',index > > }); > > > (commas in place of the colons) > > No, that's not correct. The syntax is fine in the original. > > I think the problem is that the div has an "id" value of "contenedor", > but the jQuery select is "div.contenedor". It should be > "div#contenedor". > > -- > Turtle, turtle, on the ground, > Pink and shiny, turn around.