Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7998701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:17:04+00:00 2026-06-04T15:17:04+00:00

I have a HTML list that I’d like to allow the user to be

  • 0

I have a HTML list that I’d like to allow the user to be able to re-order through drag-and-dropping, and then submit their changes to the database.

I’m happy with all the database stuff, but I’m struggling with the Javascript/JQuery.

I’ve currently got jQuery UI Sortable working fine (so the other and re-order elements via drag-and-drop), but I don’t know how to go about getting the new order for the SUBMIT.

Can anyone help? If you need more information, just say. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T15:17:06+00:00Added an answer on June 4, 2026 at 3:17 pm

    send that data to your application via an AJAX call for example

    $('#TabContainer').tabs();
    $('#TabContainer .ui-tabs-nav').sortable({
        axis: 'x',
        update: function(event, ui){
            var data = $('#TabContainer .ui-tabs-nav').sortable('serialize');
            $.ajax({
                url: '/events/update-tab-order',
                data: data,
                type: 'POST',
                mode: 'abort'
            });
        }
    });
    

    The only tricky part is that you must specify an ID on the list items in the format of groupname_identifier. For example:

    <div id="TabContainer">
        <ul>
            <li id="MyTabs_123"><a href="#tab0">Tab 1</a></li>
            <li id="MyTabs_124"><a href="#tab1">Tab 2</a></li>
            ...etc
        </ul>
        ...tab content goes here
    </div>
    

    Then when your application receives the POST data, it will be an array that looks like this:

    $_POST['MyTabs']
    
    array(
        0 => '123',
        1 => '124'
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a html list that looks like this: animals (45) houses (36) computers
Consider we have a multi-level html list that looks like this: <ul class=catalog> <li>
I have HTML that looks like this: <body class=style_0> <div> <div class=style_1>Pending Test List</div>
I have HTML that looks like this: <div class=item-list> <h3>Monday Sep 21</h3> <h3>Tuesday Sep
I have a UL html list that looks like this: <div id=scroller> <ul> <li>item
I have a webpage written in HTML. I have a dropdown list that is
I have a base.html template that contains a list of links. Example: <div id=sidebar1>
I have a html select list menu,when user select an option he/she is redirected
I have an ordered list in HTML. I would like to add styling only
I have a html webpage where I have a list that when an item

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.