File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Meteor in Action this week in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jQuery drag and drop of divs" Watch "jQuery drag and drop of divs" New topic

jQuery drag and drop of divs

james stan

Joined: Oct 13, 2012
Posts: 25

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

Joined: Jan 10, 2002
Posts: 62464

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:
subject: jQuery drag and drop of divs