Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: jQuery JQueryUI
<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.
Posted 20-Dec-12 11:59am
Edited 20-Dec-12 12:03pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 335
1 OriginalGriff 250
2 Kornfeld Eliyahu Peter 130
3 DamithSL 120
4 Peter Leow 95
0 OriginalGriff 7,355
1 DamithSL 5,199
2 Sergey Alexandrovich Kryukov 4,942
3 Maciej Los 4,906
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 20 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100