data is from ajax
my initial idea is that the data obtained by the for loop ajax corresponds to the index of the child element in the parent element of the element by clicking on the left heading with this I, so that the data displayed is consistent with the left and right sides.
but I have also made a search function that will lead to the left title of Filter that does not match the input keyword, so that the index, obtained by clicking on the left title does not correspond to the I of the for loop on the right.
if you want to do both of these two functions, how to ensure that the data on the left and right sides are consistent? thank you