• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

jQuery drag and drop of divs

 
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?
 
Marshal
Posts: 67298
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the options and events for the droppables.
 
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!