views:

969

answers:

3

i am using jquery for drag and drop its works fine with 2 divs, i can drag image across 2 divs

one div is drag able other is drop able

what i want is to have 4 divs, where i have images in each div and i can drag imge from one div to other.

is this possible in jquery ? if yes can you write a little code for me...?

Thanks

A: 

Check out these jQuery Examples, specifically the Sortables Demo

slf
dear this is not my question, my question isi have more than 3 divs and inside div i have picturesi want to sort pictures among divs using jqury
air
view the source of the sortables demo, it will work with images inside of there too
slf
+2  A: 

Please check Jquery Demo from Jquery website or

check this

http://web-design-dubai-uae.blogspot.com/2009/09/jquery-drag-and-drop.html

A: 

You need to use (and include) JQuery UI to use the $('#something').draggable() and $('#something').droppable() functions.

You can make as much items as you want draggable or droppable and create different functions for each one. Its pretty easy to work with.

This is the best example with the most functionality: http://jqueryui.com/demos/droppable/#photo-manager

DaMayan