javascript 控制CSS能見度

javascript for display:

document.getElementById(id).style.display = "none"; document.getElementById(id).style.display = "block";

for visibility:

document.getElementById(id).style.visibility= "hidden"; document.getElementById(id).style.visibility= "visible";