Originally posted by premshree what does this do?
document.getElementById("elemName").style.display="none";
There are various way to display elements. Current property setting will set that element isn't displayed at all.
Difference between setting element's visibility to hidden and setting element's display to none, is that element do not reserve the space it needs when display property has been set to none.
The element still exists though, it just isn't rendered. Often that is enough, but sometimes you need to truely delete the node using the methods I described above.