• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 293
  • Last Modified:

Hide TBody on Page Load

Hello All;
In this project, I have the <tbody> set to hide, using JavaScript.
This works wonderfully.
However, what I am needing to do, is the following.

I need all them to auto-hide on page load.
If this was with <div> tags, I could do this, with no problem, however, the <tbody> tag, has put up somewhat of a challenge.

Here is the link, there is no ASP code on this, just has its extension.

http://www.cffcs.com/Tutorials/HideTDRow.asp

Could someone please assist me with this one?
Also, if someone has a better code than this one, that is fine as well.
However, it has to work identical and with the<tbody> in it, in order to work in my actual site projects.

Thank you
Carrzkiss
0
Wayne Barron
Asked:
Wayne Barron
  • 2
1 Solution
 
Jared_SCommented:
This worked when I tried it...

<tbody id="one" class="off">

<tbody id="two" class="off">

<tbody id="three" class="off">
0
 
leakim971PluritechnicianCommented:
what is the problem with this : http://jsfiddle.net/VFFF5/
0
 
Wayne BarronAuthor, Web DeveloperAuthor Commented:
Thanks a bunch.
I did not think about the class="off"
I did not know it existed.

Thank you once again.
Carrzkiss
0
 
Wayne BarronAuthor, Web DeveloperAuthor Commented:
Hey leak
yours is not working for some reason?
Anyway, jared posted first.

Carrzkiss
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now