wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes Javascript -  make elements visible and hidden Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript -  make elements visible and hidden" Watch "Javascript -  make elements visible and hidden" New topic
Author

Javascript - make elements visible and hidden

Vicky Mohan
Ranch Hand

Joined: Oct 14, 2004
Posts: 130
Hey All,

I have a scenario where i need to toggle between showing a table / hiding a table depending on another parameter selected in the form. For some reason, I am either running into overlapping or totally hidden when i need to show the content.

Fine below the code that has three tables and the middle table needs to be either visible or hidden based on the button selected. But i end up with some overlapping .



Please replace XXX in the code with the on click function as otherwise i was not able to post the code

Any Help will be appreciated

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
look into the display instead of visibility

Eric
Vicky Mohan
Ranch Hand

Joined: Oct 14, 2004
Posts: 130
Thanks for your reply. It worked as it is supposed to
 
jQuery in Action, 2nd edition
 
subject: Javascript - make elements visible and hidden
 
Similar Threads
need help in jquery
Image while loading a page
Passing Value from Javascript method into HTML Body
jQuery not working on page
JSP...dynamic text box crteation with JavaScript