Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript - make elements visible and hidden

 
Vicky Mohan
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look into the display instead of visibility

Eric
 
Vicky Mohan
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply. It worked as it is supposed to
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic