469,332 Members | 7,006 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,332 developers. It's quick & easy.

Adjusting control on hiding a table

Hi,

I have an HTML page with a table and other controls below it. I have a
JavaScript function that hides the table when a radio buttion is
clicked. The table appears and disappears as expected. However, the
space on the page remains empty.

I want the controls below it to move up or down and readjust their
positions when the table appears or disappears.

What is the best way to do it?

Thanks.

Dec 6 '06 #1
2 973
avanti wrote:
I want the controls below it to move up or down and readjust their
positions when the table appears or disappears.
What is the best way to do it?
Set the 'display' style instead of the 'visibility' style.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Dec 6 '06 #2
Thanks. That worked!

Matt Kruse wrote:
avanti wrote:
I want the controls below it to move up or down and readjust their
positions when the table appears or disappears.
What is the best way to do it?

Set the 'display' style instead of the 'visibility' style.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Dec 6 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.