1、js代碼:
復制代碼 代碼如下:
function init() {
document.getElementById("studyPhase").disabled=true;
}
2、h:selectOneMenu下拉框
復制代碼 代碼如下:
<h:selectOneMenu id="studyPhase" value="#{schoolfellowInfoEdit.studyPhase}" >
<f:selectItems value="#{schoolfellowInfoEdit.studyPhaseNamesItems}"/>
</h:selectOneMenu>