Sortable function when content is updated via ajax Sortable function when content is updated via ajax ajax ajax

Sortable function when content is updated via ajax


After searching a lot more I found this to be my answer: jQuery live and sortable

This is what I added to my code to make it work:

    $(document).ajaxSuccess(function() {    $("ul#listaruta").sortable({        opacity: 0.6,         cursor: 'move',         update: function() {            var order = $(this).sortable("serialize") + '&action=updateRecordsListings';             $.post("/plugins/drag/updateDB.php", order);        }    });});