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
Try:
Or to get the text of the option, use
text()
:More Info:
Try this:
For an ASP.NET dropdown you can use the following selector:
For getting selected value use
and for getting selected item text use this line:
In sibling case