jQuery Eq Method - .eq() Tutorial

Read the tutorial on YogiHosting »

1. Change the background color of 2nd element - .eq(2)

First

Second

Third

Fourth

2. Using negative value in Eq method - .eq(-1)

First

Second

Third

Fourth