set html as readonly
来源:互联网 发布:excel编程入门教程 编辑:程序博客网 时间:2024/06/05 16:27
function set_readonly(obj,bool){
obj.onbeforeactivate=function() {if(bool) return false}
obj.onfocus=function (){if(bool) this.blur()}
obj.onmouseover=function(){if(bool) this.setCapture()}
obj.onmouseout=function (){if(bool) this.releaseCapture()}
}
set_readonly(document.getElementById("span_test"),true)
<span id=span_test>
<select id=test>
<option>1</option>
<option selected>2</option>
<option>3</option>
</select>
</span>
- set html as readonly
- html select模拟readonly
- html中 disabled readonly
- set readonly to select box
- html示例,readonly和Disable。
- struts1 html 标签 readOnly属性
- Error:Cannot set readonly property 问题解决
- HTML Set
- Docker: unable to remount sys readonly: unable to mount sys as readonly max retries reached
- HTML表单中的readOnly VS disable
- 让html select支持readonly属性
- 让html select支持readonly属性
- Html readonly与disabled的区别
- HTML中Readonly和Disabled的区别
- HTML控件select, 是readOnly设置
- html input readonly 和 disable的区别
- HTML <input> 标签的 readonly 属性
- 让html select支持readonly属性
- SEO优化策略
- oracle利用substr和instr函数截取角色序列的第一个角色
- 如何构造一个简单的USB过滤驱动程序
- CMD文件的编写
- ccna 1 Chapter 4
- set html as readonly
- J2EE系统的概念及如何开发
- 创建窗口代码分析一
- 驱动学习笔记–irp
- Python的reduce
- 功能强大的串口工具:GhostyComm 4.0(万能通讯精灵)
- 越是基础越是强大--英语对做软件的影响,是全方位的
- pb 编程好多年
- 修改action