Fisrt, get tag by the id of the tag , then set tag.style.display =" none", the tag will be hidden, if set tag.style.display='',the tag will be displayed,
for example:
var tag=document.getElementById("tdGrid")
tag.style.display="none"
or
tag.style.display="";