thanks will try that out.
On Jul 9, 9:15 am, Michael Lawson <mjlaw...@us.ibm.com> wrote: > If i'm reading your code right, you may want to try eq(i) instead of index > (i). index is used to return the index of the match element, its not used > to retrieve that element. > > cheers > > Michael Lawson > Development Lead, Global Solutions, ibm.com > Phone: 1-276-206-8393 > E-mail: mjlaw...@us.ibm.com > > 'Examine my teachings critically, as a gold assayer would test gold. If you > find they make sense, conform to your experience, and don't harm yourself > or others, only then should you accept them.' > > From: expresso <dschin...@gmail.com> > > > To: "jQuery (English)" <jquery-en@googlegroups.com> > > > Date: 07/09/2009 09:55 AM > > > Subject: [jQuery] Access <li> by item in the array > > > Is it possible to target certain <li> in an unordered list by index > with jQuery? I thought maybe I could use .index but was not able to > get the syntax right. > > I thought maybe something like this would work but is has not: > > $("#mycarousel > li").index(i).css("margin-right", "5px"); > > graycol.gif > < 1KViewDownload > > ecblank.gif > < 1KViewDownload