不要disabled属性也让select失效

不用disabled属性也让select失效--select size1 IDti_record_type NAMEti_record_type onChange

不用disabled属性也让select失效
<--select size="1" ID="ti_record_type" NAME="ti_record_type" onChange="NoChangeRcd(this)"

<--option value="0">研究所

<--option value="1" selected="selected">车间

<--option value="2">特殊

<-- /select>

<--input type="submit" value="提交"/>

<--script>

var selInx; //记录类型的选择索引,不能更改。

function window.onload(){

selInx = document.all.ti_record_type.selectedIndex;

}

function NoChangeRcd(sel){

sel.options(selInx).selected=true;

alert(’不能修改项目的输入类型’);

}
<--/script>