Fill jQuery UI selectable by AJAX call
问题 I am working on filling a jQuery selectable via AJAX call. I have prepared server side API, which has been tested will return serialized jason object. I have declared the selectable at client side <ol id="selectable"></ol> Then I have a button will trigger the AJAX call to get data. $.ajax({ url: '/api/XXX/XXX, contentType: "application/json; charset=utf-8", dataType: "json", //error: OnAjaxError, success: function (data) { } }); button.onclick = function () { $("#selectable").selectable({ /