Losing focus Multiple Tables each with child rows
Losing focus Multiple Tables each with child rows
Here is my question. I have:
Table 1, 3 rows.
Table 2, 3 rows.
They both have Child rows. I modified the code so that when a row is clicked it closes the other open rows (in the same table) so only one child is expanded at a time.
**Is there a way that when you click on a row, it will close all the rows in all the tables on the page? **
My problem is if I click on Table 1 Row 1, it will show the child row. When I click on Table 2 Row 1, it will expand but Table 1 Row 1 will still be expanded as well. When I click the submit button in Table 1, it will still act as if Table 2 has focus and will submit the info from the wrong table.
Thanks for your help!
Answers
Hi @whitedragond ,
This example from this thread may help. This shows how to close child rows on a single table, it would be easy to modify this to close the child rows on all tables.
Hope that helps,
Cheers,
Colin