Need of a new option in droppable

Need of a new option in droppable

Suppose, if we have a series of girds and want to know from which grid dragging is started, we can implement the following code, but I think there should be another option dealing this situation; though we have only two options ‘out’ and ‘over’, and can use them.


  1.   var droppableStart = '';
  2.     $("#draggable").draggable({
  3.         start: function(){
  4.           droppableStart = '';
  5.         }
  6.       });
  7.     $(".gridArea").droppable({
  8.       tolerance: 'intersect',
  9.       over: function() {
  10.         if(droppableStart == ''){
  11.           droppableStart = $(this).attr('id');
  12.         }
  13.       },
  14.     drop: function() {
  15.            alert(droppableStart);
  16.        }
  17.     });