Trying to make a second hidden table connected to first
Trying to make a second hidden table connected to first
I am trying to build something like this example:
https://editor.datatables.net/examples/advanced/parentChild.html
But the example itself does not seem to be working. I am doing all javascript front end build, no server in the setup. The goal is to have a hidden table that users can add rows to. This table dictates the choices in a dropdown list of one of the entries of the main table.
Is there a better working example of this?
This question has an accepted answers - jump to answer
Answers
The example looks fine to me. Why do you think it's not working?
I can add items to the location table, but when i select to add a new user, the dropdown does not load and will not let me save. I tried several browsers and leared cache.
I'm not seeing a dropdown. What do you mean?
I just added new users with no problem. Using Chrome.
There are two tables, the top one is the 'sites' table, here I can add new ones.
The second table, the 'users' table, when i click to add new, the location field which is dropdown based on the values of the sites table remains empty. If you ignore the field and add a user, it closes the popup but does not add anything to the table.
I'm not seeing that. It all works fine for me.
Are you using the actual example, or your own version of it?
I misunderstood how the example works it seems. It is working, just not how I thought and so won’t work for what I was trying. Thanks!