让html select支持readonly属性
来源:互联网 发布:好看的末世小说知乎 编辑:程序博客网 时间:2024/05/01 13:32
刚刚碰到一个要为html select添加readonly属性的要求,可是select是不支持readonly属性的,找了找,方法还是有的,不过大都比较麻烦。以下的方法个人认为是最简单的:
- <select id="lstTest" onfocus="this.defaultIndex=this.selectedIndex;" onchange="this.selectedIndex=this.defaultIndex;">
- <option value="1">test1</option>
- <option value="2">test2</option>
- <option value="3" selected="selected">test3</option>
- <option value="4">test4</option>
- <option value="5">test5</option>
- </select>
0 0
- 让html select支持readonly属性
- 让html select支持readonly属性
- 让html select支持readonly属性
- 让html select支持readonly属性
- 让html select支持readonly属性
- 让radio、select、checkbox 具有类似readonly 属性效果
- html select模拟readonly
- struts1 html 标签 readOnly属性
- HTML控件select, 是readOnly设置
- 蛙蛙推荐:让title属性支持html
- HTML <input> 标签的 readonly 属性
- HTML <input> 标签的 readonly 属性
- select readonly
- 让 nodeValue “支持” HTML
- HTML中Select不用Disabled实现ReadOnly的另类实现
- HTML中Select不用Disabled实现ReadOnly的效果
- HTML中Select不用Disabled实现ReadOnly的另类实现
- 如何设置Select下拉框、CheckBox、Radio的ReadOnly属性?
- 计算机无法访问,您可能没有权限使用网络资源
- codeigniter 命令行下方法没有输出, 安装 sql server 支持
- find the bad IP and filter
- 果然是富豪呀
- ZLIB:gzopen与compress2函数压缩的内容有什么的
- 让html select支持readonly属性
- Extjs4.0 之Ext.Class 属性详解 (alias/mixins /uses/requires/singleton等属性)
- (二)用JAVA编写MP3解码器——帧头信息解码
- Tomcat是什么?
- 采用Delegate对一个未知类型的对象进行"遍历"
- Android 自定义View(3) -- 获得Bitmap的三种方法
- mysql大数据表导入导出
- 互联网免费鸡蛋,给还是不给?要还是不要?
- iTween.cs的WP8实现