Click here to Skip to main content
14,638,971 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi experts
i have 10 div's in single page. how to drag and drop their positions in the same page without using any repeaters ..
Please help me



Thanks and regards
Ch.Nani
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Hi,

Have a look here:
http://luke.breuer.com/tutorial/javascript-drag-and-drop-tutorial.aspx[^]
You can also drag and drop using the jQuery UI:
http://jqueryui.com/draggable/[^]
   
v3
Comments
Dholakiya Ankit 26-Aug-13 8:03am
   
5ed
Thomas Daniels 26-Aug-13 8:07am
   
Thank you!
NaniCh 26-Aug-13 8:14am
   
Thank you for your response.. i want drag 2nd div to 4th place then 2nd div replaces as 4th div. here we looks 3rd div replace the position to 2nd and 4th div replace the position as 3rd and 5th div as 4th div contents. here you'r give sites only divs draggable but not replace the old div.. please help me
Thomas Daniels 26-Aug-13 8:20am
   
If you want to set a target for a draggable div, then use droppable:
http://jqueryui.com/droppable/
Is that what you want?

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




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