jQuery UI Sortable - Error: cannot call methods on sortable prior to initialization; attempted to call method 'disable'
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a jQuery UI Sortable list element that is populated dynamically from an Ajax request. Currently, the workflow goes User clicks button, list is populated and sorted by specified settings. User clicks another button, Existing list <li> elements are erased by jQuery.empty() call New data values are inserted into new <li> list elements and appended to <ul> list Sortable list is refreshed via $("#sortable").sortable("refresh"); Given a Sortable list object $("#avail_list").sortable( ... ); , I want to have specific list elements' draggable