Use HTML5 data attributes instead of id #82

webberig opened this Issue Mar 22, 2013 · 3 comments


None yet
3 participants

I have a change request.

When the script serializes the data, it uses the list item's id attribute as the key. It's my oppinion that the id attribute's function is of a more generic nature. HTML 5 allows custom data-* attributes that serve a specific function, in this case have a "key" for nestedSortable.

Would it be possible to use data attributes instead, and maybe add an option to set the name of this attribute ?


mjsarfatti commented Mar 25, 2013

That's how regular sortable works, I wouldn't change that.


mjsarfatti commented Apr 2, 2013

Again, the plugin reflects Sortable's default behavior ( As you can see you can always customize the attr it uses.

mjsarfatti closed this Apr 2, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment