事先将两个div的id设为div1和div2.将div2的display设为none
function judge(){
var str = document.getElementById(div1).innerHTML;
if("否".equals(str)){
document.getElementById(div1).style.display="none";
document.getElementById(div2).style.display="block";
}
}
事先将两个div的id设为div1和div2.将div2的display设为none
function judge(){
var str = document.getElementById(div1).innerHTML;
if("否".equals(str)){
document.getElementById(div1).style.display="none";
document.getElementById(div2).style.display="block";
}
}