Click here to Skip to main content
15,892,697 members

How to create a new .sortable list with the element dragged from another sortable list

anjumnavid asked:

Open original thread
XML
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.js"></script>

   <script type="text/javascript" src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>



I am using above jquery . My question is .....

) On a Button click i am adding a value to sortable connected list . (work fine)

2) After item add to sortable list i want to drag this item and move to connected list. (work fine).

here is the problem :

Drop down has 10 or more items . User is allow to click on btn and add all the item to 1st sortable list one by one( note: item will add to only 1st sortable list). From 1st sortable list user can drag item any where on screen and drop. when user drop item , it should create a new "ul" with id and add "li"(dragged item by user) to this.

So if i have 10 or more items in drop down ,its mean user can create 10 or more ul for each item. And at the end i need length of all the lists.

Any help will be fine.


NOTE: i am able to make two sortable list and move items inbetween but i need some thing like OOPs, so i don't need to hard code all the "ul" . "ul" should create on fly when i am dragging item , and i should be able to drop "li" into newly created "ul".

Thanks guys in advance. If you need any more detail please let me know. I been stuck with this about 2 weeks.
Tags: jQuery, jQuery-UI

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900