Demo of drop event with activate event of droppable element

Drag me to my destination

Dropp here

(Droppable element)

Drag ( activate event) and drop the draggable over droppable, then move out again.


HTML

<div id="draggable" class="ui-widget-content">
  <p>Drag me to my destination</p>
</div>
</div><div class='col-md-2'>  
<div id="droppable" class="ui-widget-header" >
  <p>Dropp here</p>
  (Droppable element)
</div>

jquery

<script>
$(document).ready(function() {
////////////////
$( function() {
$( "#draggable" ).draggable({
});
});
///////////
$( "#droppable" ).droppable({
activate: function( event, ui ) {
      $( this )
        .find( "p" )
        .html( "started moving " );
},
drop: function( event, ui ) {
      $( this )
        .find( "p" )
        .html( "Dropped ... " );
}
 });
///////////////////////
})
</script>