13-04-2010

jQuery get selected option's text value from a select

To retrieve a select's selected option value you can use the jquery val() function but if you specifically the text node's contents of the selected option you can use something like the following:

$('select :selected').text()
Keywords: select form

Comments:

Your comment:

»

 

[x]