I have a stack of divs that belong to a specific class, say tabs. and the semantic structure looks something like this:

```
<div class = "tabs" >_______</div>
<div class = "tabs" >_______</div>
<div class = "tabs" >_____</div>

```

It's easy to access the first and the last element of the div like

```
$('.tabs:first') or
$('.tabs:last')

```

but getting to the 2nd (and assuming there are multiple other divs inside then the all divs other than first or last) seems to yield a syntax error to me such as :

`$('.tabs:second') or $('.tabs:third')` do not work expectedly.

Can anyone pinpoint what is wrong here?