Click here to Skip to main content
15,306,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello:
I am stuck thinking about this if I have a grid or container div, inside this div I have multiple elements of one types like other divs or pictures or paragraphs etc.

How can I make these elements drag-able inside this div, I want each element to be dragged alone, and I want them to be dragged freely to different positions around the grid or container div?
Posted
Comments
Mohibur Rashid 7-May-15 20:58pm
   
What kind of dragging are you talking about? You can drag the content, like picture or text, into other div or elements where the elements are on their own position or you can move the element itself on the window and re-organize the position. If the situation is the first one then Sergey Alexandrovich Kryukov answer will do. Otherwise you will have look for free plugins or develop one by yourself.

1 solution

If you are using HTML+JavaScript only, you many need to use the HTML5 dragging feature. Please see:
http://www.w3schools.com/Html/html5_draganddrop.asp[^].

—SA
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900