2013-03-26 118 views
0

是否可以使用jQuery UI的拖动与被异步导入的元素使用jQuery的.load功能?我想我需要使用。对或.bind,但不能找出一些作品......jQuery的UI可拖动异步选择

+0

[添加jquery ui函数可拖动/可调整大小后追加/页面上](http://stackoverflow.com/questions/10308931/add-jquery-ui-function-draggable-resizeable-after-appending-adding -Pan-the-pag) – 2013-03-26 04:04:51

+0

你可以分享如何创建动态元素 – 2013-03-26 04:22:20

回答

0

我只想用.load回调指派draggable属性:

$("#containerselector").load('path', function() { 
    $(this).find("elementsthatshouldbedraggableselector").draggable(); 
});