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

  • Home
  • SEARCH
  • 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 6682087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:39:53+00:00 2026-05-26T04:39:53+00:00

I have the following code: <script> $(function() { $( #sortable ).sortable(); $( #sortable ).disableSelection();

  • 0

I have the following code:

<script>
$(function() {
    $( "#sortable" ).sortable();
    $( "#sortable" ).disableSelection();
});
</script>


<div class="demo">

   <ul id="sortable">
    <li class="ui-state-default">Item 1</li>
    <li class="ui-state-default">Item 2</li>
    <li class="ui-state-default">Item 3</li>
    <li class="ui-state-default">Item 4</li>
    <li class="ui-state-default">Item 5</li>
    <li class="ui-state-default">Item 6</li>
    <li class="ui-state-default">Item 7</li>
   </ul>

</div>

When i first load page, the list is in this(first pic below) order(1 through to 7), then i move and change the order of the list(second pic below). Hit reload and the order reverts back to the original order. Is is possible to preserve the changed order of the lists.

enter image description here

enter image description here

thank you for the help

  • 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-05-26T04:39:54+00:00Added an answer on May 26, 2026 at 4:39 am

    This is basically a question about how to store data in between page refreshes. It’s not something specific to jQuery UI. There are generally two main places you can store the necessary data:

    1) A cookie
    2) A database

    If you want to maintain the order of the lists in the long-term, then you will need to use a database. If it’s just a short-term issue, then a cookie is likely the better of the two solutions because it’s a lot simpler and won’t require a bunch of AJAX requests.

    HTML5 also offers local data storage, so you could accomplish the same thing with that. But it won’t be supported by all browsers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code: <script> $(document).ready(function() { $('.toggle_section').click(function(e){ parent = $(e.target).closest(div) objChild =
I have the following code: <script type=text/javascript> $(function() { $('#bootChooserControl') .load('/jqia2/action/fetchBootStyleOptions'); $('#bootChooserControl').change(function(event){ $('#productDetailPane').load( '/jqia2/action/fetchProductDetails',
I have the following code: <script type=text/javascript> $(document).ready(function() { $(#thang).load(http://www.yahoo.com); $(.SmoothLink).click( function() { $(#thang).fadeOut();
I have the following code: <script type=text/javascript> function SubmitForm() { form1.submit(); } function ShowResponse()
I have the following code: <script type=text/javascript> $(document).ready(function() { $(#Save).click(function() { $.post(url, { data:
So I have the following JavaScript code: <script type=text/javascript> function clearRadioButtons() { document.getElementById(radiobutton1).checked=; //etc
UPDATE : I have the following code: <script type=text/javascript> function addScript(url) { var script
I have the following code: <script type=text/javascript> var checksSinceLastPostBack = new Array(); function clientSelectedIndexChanged(sender,
i have following code <div class=caption style= position:absolute; margin-top:0px> <img src=caption/img1.png /> </div> <script>
I have the following code - <script type=text/javascript> function test() { var results =

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.