ReVeR Posted June 25, 2006 Share Posted June 25, 2006 Hello.How can i show/hide parts of the layout with javescript?Say, i have a <div id="hideme">HIde me test </div>How cna i show and hide that with javascript?Thx Link to comment https://forums.phpfreaks.com/topic/12876-showinghiding-parts-of-layout/ Share on other sites More sharing options...
cmgmyr Posted June 25, 2006 Share Posted June 25, 2006 You should look into some AJAX stuff. You can do a collapse and expand (like gmail) with it. There are a bunch of tutorials out there that are simple and easy to follow. Link to comment https://forums.phpfreaks.com/topic/12876-showinghiding-parts-of-layout/#findComment-49444 Share on other sites More sharing options...
nogray Posted June 26, 2006 Share Posted June 26, 2006 the easiest way for something like this<div id="hideme">HIde me test </div>is [code]// hidding divdocument.getElementById('hideme').style.display = "none";//showing divdocument.getElementById('hideme').style.display = "block";[/code] Link to comment https://forums.phpfreaks.com/topic/12876-showinghiding-parts-of-layout/#findComment-49718 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.