This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Hidding Table View Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Hidding Table View " Watch "Hidding Table View " New topic
Author

Hidding Table View

Romeo Ranjan
Ranch Hand

Joined: Feb 23, 2009
Posts: 95
Hi All,

I want to hide the contents in a table. Below is the code which when clicked on the link actually hides the content of the table which is displayed when the page is loaded.



But what i want is to hide the content of the table first then after clicking the link the content should be displayed. How do I go about doing this? Can someone help me please.

Thanks.


SCJP 6.0
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Everything you need to know is there. Look at what the JavaScript is doing. Apply that to the html/css.

Eric
Romeo Ranjan
Ranch Hand

Joined: Feb 23, 2009
Posts: 95
Thanks Eric. I got that working.
 
 
subject: Hidding Table View
 
Similar Threads
JSP and Ajax interaction
Dynamically moving the DIV
struts-2 (set values to action class)
Change in the text
Having problem using Ajax