[jQuery] Re: Target specific ul list items for css

2009-07-01 Thread Wacko Jacko
Thanks guys! Paul's http://docs.jquery.com/Selectors/nthChild suggestion is perfect as the lists are generated dynamically I can not add id's to each item. On Jul 2, 11:14 am, Shiro wrote: > Perhaps give each of them an ID? for example: > > > one > two > ... > fifth > sixth > > > T

[jQuery] Re: Target specific ul list items for css

2009-07-01 Thread Shiro
Perhaps give each of them an ID? for example: one two ... fifth sixth Then you can target them by: $("#fifth") in jquery OR #fifth { } in CSS On Jul 1, 6:10 pm, Wacko Jacko wrote: > How would I target (with jQuery or normal javascript) the 5th and 6th > li in an unsorted list

[jQuery] Re: Target specific ul list items for css

2009-07-01 Thread Paul Witschger
http://docs.jquery.com/Selectors/nthChild also works. James wrote: http://docs.jquery.com/Selectors/eq On Jul 1, 3:10 pm, Wacko Jacko wrote: How would I target (with jQuery or normal javascript) the 5th and 6th li in an unsorted list for styling? I need to change the css for only 2 items

[jQuery] Re: Target specific ul list items for css

2009-07-01 Thread James
http://docs.jquery.com/Selectors/eq On Jul 1, 3:10 pm, Wacko Jacko wrote: > How would I target (with jQuery or normal javascript) the 5th and 6th > li in an unsorted list for styling?  I need to change the css for only > 2 items in a list. > > Thanks in advance for your help.