jsp显隐的处理
显隐的处理
//继电保护的时候显示设备类型
function changeEvaType(){
if(document.getElementById("UNIT_ID").value!=1){
jQuery("#RelayProtect").hide();
vDisplayClassify_id2 = false;
}else{
document.getElementById("RelayProtect").style.display="";
//清空值
document.getElementsByName("CLASSIFY_ID")[0].value="";
vDisplayClassify_id2 = true;
}
}
<span id="RelayProtect">
<%Map DATA_STATE = new HashMap();
DATA_STATE.put("DeviceType_For_DseStateAssess", "");
request.setAttribute("CLASSIFY_ID",DATA_STATE);%>
设备类别:<common:dict dict="DeviceType_For_DseStateAssess" property="CLASSIFY_ID" name="CLASSIFY_ID" addEmptyItem=":--全部--"/>
</span>