tags:

views:

29

answers:

1
$('select')

I want to select the second select above,how to do it?

+3  A: 

You can do it like this: $('select').eq(1) or $('select:eq(1)')

Giorgi
@Jason - that will return third element because the eq selector is zero based.
Giorgi
FYI using non-browser standard selectors like `:eq()`, `:not()`, etc... is slow... as much as possible, use the methods like `.eq()`, `.not()`...
Reigel