Greetings, tell me, please, is there a way to accomplish the following task:
Task: there is a list of items (payments in the system, their number is not known in advance), it is updated / added automatically by payment. When you click on the item, an "accordion" should fall out with detailed information about the payment.
Problem: when you click on any existing payment, the first and only the first element from the entire list opens ... if, I understand correctly, then each element for opening should have a unique id ... this syntax is not correct.
Use: Thymleaf, Bootstrap
<tr th:each="pay: ${pays}"> <td colspan="7"> <table> <tr> <td><a href="#" data-toggle="collapse" data-target="#${pay.id}" class="clickable glyphicon glyphicon-chevron-right"></a> or is it solved in a completely different way?