[Solved] I want to create a div that can dragged inside the parent div and dropped?
You could user Jquery-UI Droppable component. Sample code: <div id=”draggable” class=”ui-widget-content”> <p>Drag me to my target</p> </div> <div id=”droppable” class=”ui-widget-header”> <p>Drop here</p> </div> and: $( “#droppable” ).droppable({ drop: function( event, ui ) { $( this ) .addClass( “ui-state-highlight” ) .find( “p” ) .html( “Dropped!” ); } }); Edit: You need to add the jQuery and … Read more