title: jquery ui get id of droppable element, when dropped an item
body: <p>How we get the id of droppable element, when dropped an item? Here i use jquery ui and asp.net mvc. </p>
  
  <pre><code> &lt;table id="droppable"&gt;
      &lt;tr&gt;
      &lt;td style="width:300px;height:50px"&gt;Backlog&lt;/td&gt;
      &lt;td style="width:300px;height:50px"&gt;Ready&lt;/td&gt;
      &lt;td style="width:300px;height:50px"&gt;Working&lt;/td&gt;
      &lt;td style="width:300px;height:50px"&gt;Complete&lt;/td&gt;
      &lt;td style="width:300px;height:50px"&gt;Archive&lt;/td&gt;
      &lt;/tr&gt;
          &lt;tr id="cart"&gt;
          &lt;td id="BackLog" class="drag"  style="width:120px;height:50px;"&gt;
  
           &lt;img class="draggable" id="1234" src="../../Content/themes/base/images/ui-icons_222222_256x240.png" /&gt;
  
          &lt;/td&gt;
              &lt;td id="Ready"  class="drag"  style="width:140px;height:50px"&gt;
  
  
              &lt;/td&gt;
              &lt;td id="Working" class="drag"  style="width:140px;height:50px"&gt;
  
              &lt;/td&gt;
              &lt;td id="Complete" class="drag" style="width:140px;height:50px"&gt;
  
  
              &lt;/td&gt;
              &lt;td id="Archive" class="drag" style="width:140px;height:50px"&gt;
  
              &lt;/td&gt;
          &lt;/tr&gt;
      }
     &lt;/table&gt; 
  </code></pre>
  
  <p>Here i want to move image in Ist column to other column and get the id of that column.
  For drag and drop i use the script</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(function () {
          $(".draggable").draggable({ containment: '#imageboundary', axis: "x" });
          $("#droppable").droppable({
              drop: function (event, ui) {                                      
                  $.ajax({
                      type: "POST",
                      url: '/Project/AddToPhase/' + $(ui.draggable).attr("id") ,
                      success: function (data) {
                          $('.result').html(data);
                      }
                  });
              }
          });
      });
  &lt;/script&gt;
  </code></pre>