+ 11
How to get selected text from select tag using jquery?
5 Answers
+ 8
It is ok but without passing value we can also get selected text.
var value = $("#yourdropdownid option:selected").text();
+ 5
you can get the value of selected text by using this single line of code
$("#select option:selected").text();
+ 4
Just like any other value
var value = $(â#selectâ).val();
$(â#select option[value=ââ + value + ââ]â).text()
<select id=âselectâ>
<option value=âselectedâ>Value</option>
</select>
Make sure options have value attr
+ 4
It will get value not text. I want text not value...
+ 1
Check my edit