How to callback the new list id jQuery UI: sortable

Posted by PARyGuy on Stack Overflow See other posts from Stack Overflow or by PARyGuy
Published on 2010-04-14T14:22:16Z Indexed on 2010/04/14 14:33 UTC
Read the original article Hit count: 513

Filed under:
|
|
|
|

Hi,

I'm trying to use the sortable widget for my site. I have a mini scheduling app that I'd like to display a list of appointments for the week sorted by days.

For this example we'll use only two days ( 2 lists ). If I wanted to drag an appointment (list item) from day 2 over to day 1, is there a way I can callback the id of list 1 after I dragged an item to it? I can find the id of the parent list upon page load but I can't seem to be able to pull the new id after sort. Is this even possible?

<script type="text/javascript"> $(function() { $("#day1, #day2").sortable({ connectWith: '.sortable' }).disableSelection(); }); </script>

© Stack Overflow or respective owner

Related posts about jquery-ui

Related posts about sortable