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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:39:16+00:00 2026-05-15T22:39:16+00:00

I have an unordered list, each list item has an id (id=6~OriginalName) – when

  • 0

I have an unordered list, each list item has an id (id=”6~OriginalName”) – when I do a toArray on this list, I get a nice array and each item looks like “6~OriginalName” that I can parse later on.

$("#roleList").sortable('toArray')

The problem is that now I’ve embedded a TextBox in each list, which its value that of the OriginalName, the user can now edit the name. But “toArray” only creates the array based on the id.

How can I create a nice array of “6~UserEditedName” from the textbox?

If I have to do it manually I will – toArray like before, somehow create an array based on ALL the textbox values and combine the 2. But I have no idea how to access each textbox.

Oh – the user can also add new items in the list (therefore embedded textbox) because I have an append() going on as well 😛

I hope this makes sense.

Picture a list with a bunch of texboxes where you can “edit” the list.

  • 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-15T22:39:17+00:00Added an answer on May 15, 2026 at 10:39 pm

    This solution will be inexact, since you didn’t post your full code. What you can to do is find all of the textboxes using the appropriate jQuery selector, then run a function against the selection to build your array. Ex:

    var myArray = new Array();
    $('#roleList input.myTextBox').each(function() {
     var $textBox = $(this);
     myArray.push($textBox.attr('id') + '~' + $textBox.val());
     $textBox = null;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an unordered list I'm using for a menu. Each item has a
I have this unordered list <ul> <li>two</li> <li>three</li> </ul> Is there a way I
I have an unordered list with elements and I want to append an item
I have an unordered list, which has maybe 30 items. When one of these
I have an unordered list that when an item is clicked it displays several
I am currently trying to manipulate a unordered list with jQuery, essentially I have
I currently have a page that contains an unordered list. That list is initially
I have an unordered list in an object: var myUL = $('ul#theID'); //I send
I have an unordered list and I have set the style property 'none' so
I have an unordered list of links. <ul> <li><a href=#>Link is really really really

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.