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
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
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
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.
4 matches
Mail list logo