HTML interesse |
|
function toonReg(waarde)
{
var div1 = document.getEle...;
var div2 = document.getEle...;
if(waarde == 1)
{
div2.style.display = "none";
div2.style.visibility = "hidden";
div1.style.display = "block";
div1.style.visibility = "visible";
}
else if(waarde == 2)
{
div2.style.display = "block";
div2.style.visibility = "visible";
div1.style.display = "none";
div1.style.visibility = "hidden";
}
}
function toonReg(waarde) { var div1 = document.getEle...; var div2 = document.getEle...; if(waarde == 1) { div2.style.display = "none"; div2.style.visibility = "hidden"; div1.style.display = "block"; div1.style.visibility = "visible"; } else if(waarde == 2) { div2.style.display = "block"; div2.style.visibility = "visible"; div1.style.display = "none"; div1.style.visibility = "hidden"; } }
Ik gebruik normaal wel inline in plaats van block, geen idee of dat wat uitmaakt... |