Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 153813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:52:04+00:00 2026-05-11T09:52:04+00:00

I have a problem with animations using jQuery on nested tables. I want to

  • 0

I have a problem with animations using jQuery on nested tables. I want to make a table that is a bit like a treeview, with a little + / – to expand and get more details about the clicked row.

How can I modify the following code for the animations to work both in Internet Explorer 6.0+ and in Firefox ?

I can change the markup or the javaScript, it doesn’t matter as long as it works.

If this is useful to know, this structure is generated using nested repeaters in asp.net. I have access to the Telerik’s radAjax control suite, but I haven’t been able to make their radGrid work with nested tables.

Document structure:

    <tr>         <th>&nbsp;</th>         <th>Code</th>         <th>Title</th>     </tr>       <tr>         <td><span class='TreeCollapseSign'>-</span></td>         <td>WAA-864R</td>         <td>Code 1 ... some details ... - MODULE 2</td>             </tr>      <tr>         <td colspan='6'>             <table>                      <tr>                     <th>Extra Info 1</th>                     <th>Extra Info 2</th>                     <th>Extra Info 3</th>                 </tr>                  <tr>                     <td>Some info...</td>                     <td>Some more info...</td>                     <td>Yet more Info</td>                 </tr>                                             </table>         </td>     </tr> </table> 

Javascript:

<script type='text/javascript'>     (function($) {         $(document).ready(function(){              $('.TreeCollapseSign').data('visible', true);              $('.TreeCollapseSign').click(function(){                  if ($(this).data('visible')) {                     $(this).parent().parent().next().fadeOut().end().end().end().data('visible', false).text('+');                                 } else {                     $(this).parent().parent().next().fadeIn().end().end().end().data('visible', true).text('-');                 }              });         });     })($) </script> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:52:05+00:00Added an answer on May 11, 2026 at 9:52 am

    Are you able to change the output code, to use UL instead of a table?

    If you can, then you might want to take a look at jQuery Treeview plugin. That’s what I use for all treeviews.

    Actually, it’s semantically more appropriate to use an UL rather than a table for a treeview, but in your case would depend on having the chance of changing the code at all.

    Anyway, in case you can’t, I think you can’t fade out TR’s… I had a similar problem in the past, so I’d suggest fading out the inner table instead, then hiding the TR.

    Also, there’s no point in calling end() 3 times. It’s faster and more readable if you just do $(this) again after you show/hide the inner table:

    var innerTable = $(this).parent().parent().next().find('table'); if ($(this).data('visible')) {   innerTable.fadeOut();   innerTable.parent().hide();   $(this)     .data('visible', false)     .text('+'); } else {   innerTable.parent().show();   innerTable.fadeIn();   $(this)     .data('visible', true)     .text('-'); } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 118k
  • Answers 118k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I was thinking if you can create two sockets. One… May 11, 2026 at 11:31 pm
  • Editorial Team
    Editorial Team added an answer Yes, RadioButtonList renders horrible HTML. Anyway, it's still easy to… May 11, 2026 at 11:31 pm
  • Editorial Team
    Editorial Team added an answer Yes you can certainly change the action of the form.… May 11, 2026 at 11:31 pm

Related Questions

I'm having some minor problems with some animations I'm trying to set up. I
I have created a jQuery content switcher . Generally, it works fine, but there
I have a dynamic amount of div's being returned from a query, all with
For some reason when i use the jquery toggle function with a speed option,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.