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

  • SEARCH
  • Home
  • 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 7065983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:01:36+00:00 2026-05-28T05:01:36+00:00

I am using jQuery now to dynamically generate DIVs based off user input. With

  • 0

I am using jQuery now to dynamically generate DIVs based off user input. With the nature of how these are generated and formatted, there’s no direct parent/child relationship between the DIVs. In fact, I suppose the simplest way to explain it is the generation of a tree. I want to be able to create a custom hierarchy such that if an element at the top of the tree is deleted, so are all of it’s pseudo-children.

A somewhat visiual example follows below. The Diagram follows a horizontal hierarchy.

Level 1   Level 2    Level 3
-----------------------------

   X        X          X  \
                       X   | >> These 3 elements are pseudo-children of 
                       X  /     the first elements in level 1 and level 2

            X   <<<<<< X  << The element in level 2 is pseudo-child of  
                       X     the first element in level 1

   X        X          X

            X          X
                       X     

UPDATE:

Code Example:

<tr>
  <td>Level1</td>
  <td>Level2</td>
  <td>Level3</td>
</tr>
<tr>
  <td />
  <td />
  <td>Level3</td>
</tr>
<tr>
  <td />
  <td />
  <td>Level3</td>
</tr>
<tr>
  <td />
  <td>Level2</td>
  <td>Level3</td>
</tr>
<tr>
  <td />
  <td />
  <td>Level3</td>
</tr>

etc… (matching the diagram)

  • 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-28T05:01:37+00:00Added an answer on May 28, 2026 at 5:01 am

    I think what you want is the Flexible Box Module in HTML5. See a really nice set of articles about it here

    And the playground http://flexiejs.com/playground/ (along with a x-browser javascript library)


    My guess is the only way to do this with a table in the UI is to also store a tree in memory and then use that to “know” what to delete.


    Maybe I’m missing something but what is wrong with this:

    <div id="a">
       <div id="b">
          <div id="c" />
          <div id="d" />
          <div id="e" />
       </div>
       <div id="f">
          <div id="g" />
          <div id="h" />
       </div>
    </div>
    <div id="i">
       <div id="j">
          <div id="k" />
       </div>
       <div id="l>
          <div id="m" />
       </div>
    </div>
    
    
    
    Level 1   Level 2    Level 3
    -----------------------------
    
       a        b          c  \
                           d   | >> These 3 elements are pseudo-children of 
                           e  /     the first elements in level 1 and level 2
    
                f   <<<<<< g  << The element in level 2 is pseudo-child of  
                           h     the first element in level 1
    
       i        j          k
    
                l          m
                           n
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project using jQuery and a lot of dynamically-generated content. There is
I am using Jquery to dynamically add some HTML into a page. Now this
I am using jQuery to dynamically insert combo buttons in a loop. Right now
Hey right now I'm using jQuery and I have some global variables to hold
I am using JQuery Validation . Now I want my rules to be invoked
I am using JQuery with the DataTable plugin, and now I have a big
i m using jQuery tablsorter plugin, it's working perfect,but now problem is ... i
For our site, Im using a lot of jQuery - right now Im looking
I have a simple HTML. I am using the JQuery for AJAX purpose. Now,
I have been using mootools for a year now. I need to use jquery

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.