展开全部
给下拉框加disabled属性
例如
JS代码:
<script type="text/javascript">
window.onload = function(){
document.getElementById('select').disabled=true;
}
</script>
html代码:
<form id="form1" name="form1" method="post" action="">
<select name="select" id="select">
<option value="a">1</option>
<option value="b">2</option>
</select>
</form>
例如
JS代码:
<script type="text/javascript">
window.onload = function(){
document.getElementById('select').disabled=true;
}
</script>
html代码:
<form id="form1" name="form1" method="post" action="">
<select name="select" id="select">
<option value="a">1</option>
<option value="b">2</option>
</select>
</form>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询