Solved

Hide TBody on Page Load

Posted on 2013-01-10
4
281 Views
Last Modified: 2013-01-10
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
Comment
Question by:Wayne Barron
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
Jared_S earned 500 total points
ID: 38763207
This worked when I tried it...

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

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

<tbody id="three" class="off">
0
 
LVL 82

Expert Comment

by:leakim971
ID: 38763244
what is the problem with this : http://jsfiddle.net/VFFF5/
0
 
LVL 30

Author Closing Comment

by:Wayne Barron
ID: 38763330
Thanks a bunch.
I did not think about the class="off"
I did not know it existed.

Thank you once again.
Carrzkiss
0
 
LVL 30

Author Comment

by:Wayne Barron
ID: 38763336
Hey leak
yours is not working for some reason?
Anyway, jared posted first.

Carrzkiss
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question