<select οnfοcus="this.defaultIndex=this.selectedIndex;" οnchange="this.selectedIndex=this.defaultIndex;">
<option value='0'>否</option>
<option value='1' selected>是</option>
</select>
设置下拉框不能选择并且可以传值
最新推荐文章于 2020-10-19 11:15:26 发布
<select οnfοcus="this.defaultIndex=this.selectedIndex;" οnchange="this.selectedIndex=this.defaultIndex;">
<option value='0'>否</option>
<option value='1' selected>是</option>
</select>