tags:

views:

30

answers:

1

Normally, we get first value that way:

$("#color option:first").val()

But I need something like

$(this.id option:first).val()

and of course it doesn't work.

+3  A: 
$("option:first", this).val()

Another option is find (children may work as well, depending on your structure):

$(this).find("option:first").val()
Kobi
Thank you, it works.
ufw