0
我正在使用一些AJAX(ASP.NET Web窗体)在我的网站上添加新的可选元素,但新创建的元素不可选。我想这与一些事件有关。也许可以通过在这些函数上使用.on来解决,但我不知道该怎么做。任何人都知道如何解决该问题?使用AJAX添加jQueryUI可选项目
这里是我的代码:
$(".selectable").selectable({
filter: '.ui-widget-content',
stop: function() {
var result = $("#select-result").empty();
$(".ui-selected", this).each(function() {
var index = $(this).attr('id');
index = index.substring(12, index.length);
result.append(" #" + index);
});
}
});