SHARE
TWEET

Untitled

a guest Jun 16th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. drop: function (event, ui)
  2.     {
  3.         var draggable      = $(ui.draggable)
  4.           var droppable      = $(this)
  5.            var draggableClass = draggable.attr('class')
  6.           var droppableClass = droppable.attr('class');
  7.  
  8.         droppable.append(draggable.text());
  9.         draggable.attr('class', droppableClass);
  10.         droppable.attr('class', draggableClass);
  11.         draggable.empty();
  12.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top