Using AJAX in a Widget to Sort items [closed]
The script you are loading will apply the sortable to all elements with the .mywidget-list class just after the document has loaded. Once you drop your widget inside a sidebar, a new .mywidget-list element is created trough $.ajax, which cannot have your sortable function attached to it, because it’s new. If you save the widget, … Read more