jQuery <select>: how to get $(this.id) :first ?

Posted by ufw on Stack Overflow See other posts from Stack Overflow or by ufw
Published on 2010-04-18T07:15:22Z Indexed on 2010/04/18 7:23 UTC
Read the original article Hit count: 203

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about select