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.
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.
$("option:first", this).val()
Another option is find
(children
may work as well, depending on your structure):
$(this).find("option:first").val()