Is commonly used with javascript to hide and show elements without deleting and recreating them.
Style display visible js. // showing document.getelementbyid ('element').style.display = ''; Web function loadpage(page_request, containerid){ if (page_request.readystate == 4 && page_request.status==200) { var container = document.getelementbyid(containerid); Web viewed 392k times.
// or container.style.display = 'block'; // show div.style.visibility = 'visible'; Web var div = document.getelementbyid('div_id');
In some examples, they use visibility and in some display. Please answer in simple javascript only. // or div.style.display = 'none';
Web // // this will most probably work: Is used in javascript to hide an element. But in jquery, $ (#elementid).hide ();
Use the display property to both hide and remove an element from the document layout! This visibility property defines that a particular element is visible on the webpage. On clicking close (x) icon hide (id);
// or div.style.display = 'block'; // if (bdisplay == null) bdisplay = true if (!bdisplay) { o.style.display = 'none'; Hidden elements take up space on the page.