Hello,
Yesterday I downloaded an older version of the ui.sortable (Version 1.5.3). I got it setup with basic drag n drop and everything is fine. Now I need to add event functionality. I attached a "sortupdate" event where I would like to get a few attributes from the ui.item and the new index of the dropped item. I have not been able to find any good documentation on the older version of the control. The following code is what I have setup and it is firing at the right time but the ui.item object is not what I am expecting. The same exact code works as expected for a newer version (1.7) but in 1.5.3 it does not find any attributes of the item. I cannot update to a newer version based on stuff outside of my control for the project. Here is the code I have now The test alert fires but the attribute alert comes back unidentified. Any suggestions/links to documentation would be helpful:
- $("#sortable").bind("sortupdate", function(e, ui) {
- alert('test');
- alert($(ui.item).attr("id"));
- });