nestedsortable dynamic item not collapsing
问题 I am using this nested sortable plugin mjsarfatti.com/sandbox/nestedSortable and the only issue I have so far is when I dynamically add an item to the "tree", I am not able to expand or collapse the item(s). I am just using the sample code so far, and adding to that. How I am adding the items dynamically: $('#new-button').on('click', function() { var nextId = $('ol.sortable').nestedSortable('nextId'); var $li = $("<li id=\"list_" + nextId + "\"><div><span class=\"disclose\"><span></span> <