i using jquery-ui draggable , droppable. want run function after draggable item dropped anywhere in body.
i did this, wont work:
jquery(document).drop(function(){ alert('a draggable item dropped somewhere'); });
check link http://jqueryui.com/droppable/
$( "#droppable" ).droppable({ drop: function( event, ui ) { $( ).addclass( "ui-state-highlight" ).find( "p" ).html( "dropped!" ); } });
Comments
Post a Comment