[jQuery] Re: addclass() only works with the first of the matched divs

2009-07-17 Thread Alexandre
that's it. thanks guys. On Jul 16, 8:13 pm, "Cesar Sanz" wrote: > Id must to be unique. > > So, jQuery just find one element with the specified Id, > > try to make id uniques > > - Original Message - > From: "Alexandre" > To: "jQuery (English)" > Sent: Thursday, July 16, 2009 3:40 PM >

[jQuery] Re: addclass() only works with the first of the matched divs

2009-07-16 Thread Cesar Sanz
Id must to be unique. So, jQuery just find one element with the specified Id, try to make id uniques - Original Message - From: "Alexandre" To: "jQuery (English)" Sent: Thursday, July 16, 2009 3:40 PM Subject: [jQuery] addclass() only works with the first of the matched divs Hi,

[jQuery] Re: addclass() only works with the first of the matched divs

2009-07-16 Thread Charlie
pretty simple problem, all ID's have to be unique(w3c standards), change ID's to class will work fine Alexandre wrote: Hi, I'm having an annoying issue with addClass() I'm trying to find all divs with id name '#moldura_slides' and add the class '.horizontal' to each one of them. The prob