【发布时间】:2023-03-17 15:35:05
【问题描述】:
可能重复:
jQuery get specific option tag text
How to get the text of the selected option of a select using jquery?
我有一个下拉列表,我想知道所选项目的文本。例如:
<select>
<option value="1">Volvo</option>
<option value="2">Saab</option>
<option value="3">Mercedes</option>
</select>
如果我知道选定的值,我怎样才能得到它的文本值?例如,如果值为1,我如何获得Volvo?
非常感谢您的帮助。
【问题讨论】: