网络编程 
首页 > 网络编程 > 浏览文章

HTML中Select不用Disabled实现ReadOnly的效果

(编辑:jimmy 日期: 2026/3/9 浏览:3 次 )
方法如下:
复制代码 代码如下:
<select onbeforeactivate="return false" onfocus="this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()">  
<option>1</option> 
</select>
上一篇:用JavaScript调用WebService的示例
下一篇:javascript add event remove event