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 8158905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:45:35+00:00 2026-06-06T17:45:35+00:00

I have a sortable that it was loaded from JSON files. This is a

  • 0

I have a sortable that it was loaded from JSON files.
This is a sortable’s jquery http://jqueryui.com/demos/sortable

But I want to edit one item. The item before is inserted from the user. Looking the http://jqueryui.com/demos/sortable for example I want Item 3. How?

Now I want to edit one item for example Little birds, with JavaScript or jQuery, with one variable’s string. This variable is inserted from a user in a textarea.(this i know).

How to edit the item’s sortable using the variable???

I receive from a textarea the element name that I have to cancel.

<textarea></textarea>

I know how you analyze the list but edit (change) the name’s item’s sortable?

The HTML code of the sortable:

<div id="sortparam">

<ul style="" class="ui-sortable" id="sortable">
    <li style="" id="1" class="ui-state-default"> <span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Singular sensation</li>
    <li style="" id="2" class="ui-state-default"> <span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Beady little eyes</li>
    <li style="" id="3" class="ui-state-default"> <span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Little birds </li>
</ul>

</div>

Please, I don’t want contenteditable

  • 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-06T17:45:36+00:00Added an answer on June 6, 2026 at 5:45 pm

    You either need to target text nodes or replace the full html of the element. We have no way to know how you intend to target which sortable gets edited.

    Following solution stores the icon html, and updates full html of the element.

    DEMO: http://jsfiddle.net/WZeMH/

    /* no relationship given on how to determine which sortable to edit use second one*/
    var whichSortable= 2;
    
    /* define sortable element to edit */
    var $sortableEl=$('#'+whichSortable);
    
    /* store icon span html string*/
    var iconSpan=$('<div>').append( $sortableEl.find('.ui-icon').clone() ).html();
    
    $('textarea').keyup(function(){
        var val=$(this).val();
         $sortableEl.html( iconSpan + val);    
    })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a sortable that it was loaded from JSON files. Now I want
I have a sortable list like this one: http://jqueryui.com/demos/sortable Is it possible to get
I have a sortable like the 2nd example on this page: http://jqueryui.com/demos/sortable/items.html The sortable
I'm trying to follow http://www.foliotek.com/devblog/make-table-rows-sortable-using-jquery-ui-sortable/ And have created a very simple example http://jsfiddle.net/6wbZQ/ It's
I have followed the instructions on http://railscasts.com/episodes/147-sortable-lists for creating a sortable list. The list
i have atext from jquery method : <fieldset> <ul id=ContentPlaceHolder2_1g class=profList column ui-sortable> <legend
I have multiple JQuery sortable lists that connect with each other... They allow you
I have a list powered by jQuery UI's sortable that allows a user to
We have a sortable list using JQuery UI Sortable that we are trying to
I have a sortable list of folders using JQuery UI. The thing is that

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.