标签:style io ar div cti sp on c ad
//设置两个div,实现
//jdzt1,jdzt 是两个下拉框id
jQuery(document).ready(function(){
var jdzt1 =document.getElementById("jdzt1").value;
var jdzt =document.getElementById("jdzt").value;
if(jdzt!="0") {
jdzt1="";
}
if(jdzt1!="") {
document.getElementById(‘div1‘).style.display = "block";
} else {
document.getElementById(‘div1‘).style.display = "none";
}
});
jQuery("#jdzt").bind("change",function(){
document.getElementById("jdzt1").value="";
var jdzt =document.getElementById("jdzt").value;
if(jdzt=="0") {
document.getElementById(‘div1‘).style.display = "block";
} else {
document.getElementById(‘div1‘).style.display = "none";
}
});
标签:style io ar div cti sp on c ad
原文地址:http://www.cnblogs.com/JsonShare/p/3962791.html