Sunday, February 10, 2013

JavaScript DOM

document.getElementById("idofelem").style.color = "black";
document.getElementById("idofelem").firstChild.nodeValue = "yes";
document.getElementById("idofelem").style.visibility = (document.formname.vischeckbox.checked) ? "visibile" : "hidden";