Demo For: jQuery :odd() Selector Examples
This is MY DIV 1
This is MY DIV 2
This is MY DIV 3
This is MY DIV 4
- List item 1
- List item 2
- List item 3
- List item 4
- List item 5
R1C1 | R1C2 | R1C3 | R1C4 |
R2C1 | R2C2 | R2C3 | R2C4 |
R3C1 | R3C2 | R3C3 | R3C4 |
R4C1 | R4C2 | R4C3 | R4C4 |
NOTE: 0 is considered as an even number and as the indexing starts from 0, the elements appearing at 2nd place will have the index as 1 and so on. So dont panic when you see the elements appearing at 2nd, 4th places to be highlighted. Instead starting counting the elements from 0 and that will start making sense.