简直逆天 html 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> 

posted @ 2018-09-06 19:29  大腮鱼  阅读(1384)  评论(2编辑  收藏  举报