Jump to content

Archived

This topic is now archived and is closed to further replies.

ReVeR

Showing/Hiding parts of layout

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
the easiest way for something like this
<div id="hideme">HIde me test </div>
is
[code]
// hidding div
document.getElementById('hideme').style.display = "none";

//showing div
document.getElementById('hideme').style.display = "block";
[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.