This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
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: 60740
    
  65

Check out the options and events for the droppables.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jQuery drag and drop of divs
 
Similar Threads
retrieve check box value rendered dynamically by a javascript
Safari and IE issues.
Overlapping columns in Firefox
changing link background image dynamically
white-space nowrap and DOCTYPE