Get selected text from a drop-down list (select box) using jQuery Get selected text from a drop-down list (select box) using jQuery javascript javascript

Get selected text from a drop-down list (select box) using jQuery


Try this:

$("#myselect :selected").text();

For an ASP.NET dropdown you can use the following selector:

$("[id*='MyDropDownId'] :selected")


The answers posted here, for example,

$('#yourdropdownid option:selected').text();

didn't work for me, but this did:

$('#yourdropdownid').find('option:selected').text();

It is possibly an older version of jQuery.