File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes jQuery drag and drop of divs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jQuery drag and drop of divs" Watch "jQuery drag and drop of divs" New topic
Author

jQuery drag and drop of divs

james stan
Greenhorn

Joined: Oct 13, 2012
Posts: 25
Hi


In the above code there are 2 major divs - one for sidebar on a page and the other div content wrap . The Sidebar has components in divs like Makemedraggable1 , Makemedraggable2,Makemedraggable3,Makemedraggable4.

The Sidebar has components in divs like Makemedroppable1 , Makemedroppable2,Makemedroppable3,Makemedroppable4.


The Components from SideBar div like (MakeMedraggable div ) are dropped onto Content-Wrap Div(like MakeMedroppable div).
Now my code can do this but i need some additional functionality like if MakeMedroppable2 div into MakeMedraggable 1 , an alert window should popup and the move should be invalidated.

How can i do this?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61206
    
  66

Check out the options and events for the droppables.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jQuery drag and drop of divs