How can I get the selected text (not the selected value) from a drop-down list in jQuery?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- How to fix IE ClearType + jQuery opacity problem i
- void before promise syntax
- jQuery add and remove delay
If you want the result as a list, then use:
Simply try the following code.
it returns the text of the selected option.
For multi-selects:
This works for me:
jQuery version: 1.9.1
if you use asp.net and write
then you should use