johnny / johnny/jquery-sortable

Help wanted: Saving re-ordered structure

Open
#250 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
1.5k
Forks
429
PR merge metrics
No merged PRs in 30d

Description

Hi,

I have jquery-sortable working fine in my site page now, however, and sorry if this is a bit of a silly question, but how do I go about saving / getting access to the new structure once the user has done their dragging and dropping?

I am using it for the re-ordering of menu items, and the initial structure on page load is from a parent/child database table.

What I need to do is, on the press of a Save Changes button, update the database table with the changes, or re-create the table contents if needs be from the new UL / LI structure.

I have added to the LI's custom attributes with the parent/child ID's.

How would I do this please?

Thanks in advance.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.