You can see below an example of my error.
The first script is a simple loop to create ten collapses. In order to not overload the page, we are going to do an ajax cal