jquery的拖放问题,麻烦大神帮我看看
jquery代码:
$.each($(".drawImg"),function(){
this.draggable({
start: function(event, ui) {
},
stop: function(event, ui) {
}
});
});
html代码:
<div id="drawImgArea" class="drawImgAreaBac">
<div id="Linecontainer-$tab_idx" class="drawImg">
</div>
<div id="Circlecontainer-$tab_idx" class="drawImg">
</div>
<div id="Rectcontainer-$tab_idx" class="drawImg">
</div>
<div id="Polygoncontainer-$tab_idx" class="drawImg">
</div>
</div>
怎么拖不了呢,代码哪里写的不对吗?
------解决方案--------------------
JScript code
$.each($(".drawImg"), function () {
$(this).draggable({/////
start: function (event, ui) {
},
stop: function (event, ui) {
}
});
});