• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jQuery drag and drop of divs

 
james stan
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64716
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the options and events for the droppables.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic