I'm using the jquery .not method: http://api.jquery.com/not/
I have this jquery fiddle
On this fiddle i have this line of code.
$( "li" ).not( ":even" ).css( "background-color", "red" );
The documentation link explains this line as:
The result of this call is a red background for items 2 and 4, as they do not match the selector (recall that :even and :odd use 0-based indexing).
I'm having trouble understanding that. Because when i run this fiddle i see that item 2 and 4 are colored red.
Anyone know a more simple explanation of this line?
What does this colon symbol with the even mean? :even