hide an element in html but shown in DOM in C# code example Example: how to hide div in html document.getElementById('elementName').hide();