This is fiddle basically the same thing as seen on jquery
Here is fiddle of that version: http://jsfiddle.net/DHCaA/
What I am trying to do is simple. For example (using that fiddle) If I move section 1 below section 2, how can I get ID's of the sections that switched place. I need those ID's so I can do some calculations and changes on my model.
Every element in the accordion is created dynamically, and I can create whatever I desire. For example:
<div id ="first-1" class="group">
Thats first entry with ID.
Any Idea?