【发布时间】:2013-11-26 12:16:50
【问题描述】:
我需要在放置后更改输入文本,但项目是静态的
我的代码:
$(".item").draggable({
revert: "invalid",
snapTolerance: 20,
snap:"#grid",
containment:'#grid',
start: function(){
$("#grid").addClass("active");
$(this).attr("id","big");
$(this).html("<input type='text' placeholder='Заголовок' class='head'>");
},
stop: function(){
$("#grid").removeClass("active");
}
});
【问题讨论】:
-
能否请您创建一个小提琴或向我们展示一些 html
标签: javascript jquery draggable drag