0
添加.textbox
後,我希望能夠拖動它。在添加後拖動元素
使用下面的代碼,我可以附加.textbox
,但我無法讓它拖動。怎麼了?
$('#add_textbox').on({
click: function() {
var textbox = "<div class='textbox'></div>";
$('#container').append(textbox);
},
});
$('.textbox').on({
mouseenter: function() {
$('.textbox').draggable();
}
});