首页
Python
Java
PHP
IOS
NodeJS
JavaScript
HTML5
小程序
AI
serverDropList
全部标签
javascript - 如何获取选择控件中选中项的文本?
server1:3000server3:3000我知道在原型(prototype)中我可以通过$('serverDropList').value获取值,但是我如何获取“server1:3000”? 最佳答案 如果您正在使用Prototype,您可以使用:vartext=$('serverDropList')[$('serverDropList').selectedIndex].text; 关于javascript-如何获取选择控件中选中项的文本?,我们在StackOverflow上找到一
中选
javascript
section
serverDropList
code
prototypejs
Home
Powered By JJZJJ.COM
页面耗时:1.3264s