获取select option自定义元素的值
2016-05-11 12:45
232 查看
var obj=document.getElementById("select");
var index=obj.selectedIndex;
var text=obj.options[index].getAttribute("lrc");
alert(text);
var index=obj.selectedIndex;
var text=obj.options[index].getAttribute("lrc");
alert(text);
相关文章推荐
- 在 MFC 框架中,有什么方法能直接将 OpenCV 2.0 库中 Mat 格式的图片传递到 Picture Control(图片控件)显示?
- Mac或者linux系统自动加载python tab补全功能
- Hadoop文件压缩
- 怎么做网站的SEO——浅谈个人认知
- MyEclipse如何自定义添加tomcat server library
- linux framebuffer
- Nginx 配置一个虚拟站点
- 每秒处理10万订单乐视集团支付架构
- CentOS6.5中修改yum源
- 2.1.2 JDK安装与环境变量配置(Linux版)
- 反向代理应用frp
- 论开源<3>---从公司企业的高度看开源
- Linux常用命令
- centos6下安装dedecms
- MAC软件-Photoshop2015破解安装
- eclipse tomcat内存设置
- VS2012中使用opencv出现“无法解析的外部符号”问题
- 关于在Linux:Pydev中安装MySQLdb问题
- linux之x86裁剪移植---字符界面sdl开发入门
- tomcat 性能优化