Displaying data with dynamic accordion

By | November 12, 2023

If you want to have an accordion feature to show extra data where you are displaying data from a database on an existing row, you need create set some extra attributes on the first row. One important attribute is data-target which needs to contain a dynamic value such as


This then points to the second row and is referenced by


For more information, check out this post:


Another neat reference site is: https://codepen.io/n3k1t/pen/OJMGgyq

For sortable accordions, some js magic will be required like this:


Leave a Reply

Your email address will not be published. Required fields are marked *