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 3938106
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:08:46+00:00 2026-05-20T00:08:46+00:00

I have developed a jquery based expand/collapse table with an option of creating new

  • 0

I have developed a jquery based expand/collapse table with an option of creating new sets of same expand/collapse feature also with deleting.

  1. Exp/collpse is not working for the news ones

    UPDATE: Fixed the exp/collapse issue. I need to generate Ids for new created TR’s. How can i do that..?

Can anyone please help me. Here is the implementation.
http://jsfiddle.net/pixelfx/wJBgt/14/

  • 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. Editorial Team
    Editorial Team
    2026-05-20T00:08:46+00:00Added an answer on May 20, 2026 at 12:08 am

    2.

    $('.delete').live('click', function() {
       $("#something").find("tr:gt(1)").remove();
       return false;
    });
    

    So you click delete on anything and what do you do? You find all rows greater then 1. So any row in the table that is not the first row and you delete it. It’s doing exactly what you asked for.

    Try $(this).closest("tr").remove() instead.

    1.

    $(function() {
        $('tr.parent').css("cursor", "pointer").attr("title", "Click to expand/collapse").click(function() {
            $(this).siblings('.child-' + this.id).toggle();
        });
        $('tr[class^=child-]').hide().children('td');
    });
    

    your click for the new ones doesn’t work because you didn’t use .live. and only attaches to the current row rather then all rows.

    There are a lot more things wrong with the code based on design decisions, I can’t really make it work as “intended” without redoing the entire thing.

    Some-one else can do that for you 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed code with Ajax and jQuery. I have got a response from
We have developed a website that uses MVC, C#, and jQuery. In one of
Have any bridge libraries been developed for PHP that provide access to the jQuery
I have a jquery based slider on the page. This slider calls a function
i am trying to making php ajax based chat system....and i have developed it
We have started using Wijmo (based on the jQuery UI & jQuery UI Theme
I have developed an web application using xhtml, jQuery, Ajax, java, Servlets & tomcat
I have a custom developed WordPress plugin that is using jQuery 1.4 and for
I have developed a jquery mobile application for my site http://tastykhana.in/m there is an
My native iphone app, developed with phonegap with jquery (so its browser based), can

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.