jQuery: The Write Less, Do More JavaScript Library

how i can get the "id" of the dropped tag

View: New views
2 Messages — Rating Filter:   Alert me  

how i can get the "id" of the dropped tag

by Smirnoff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

how i can get the "id" of the dropped tag in this code :

  <script type="text/javascript">
  $(document).ready(function(){
    $("#draggable").draggable();
    $("#droppable").droppable({
      drop: function() {
          alert($(" ??? "));

                }
    });
  });
  </script>


the tags is :
<ul>
   <li id="item_1">
   <li id="item_2">
   <li id="item_3">
</ul>

thanks.

Re: how i can get the "id" of the dropped tag

by dave.methvin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You'd be better off asking this in the jQuery UI group.