2
在jQuery用戶界面的網站:如何獲取哪個div/ui.helper在拖動事件jqueryui/jquery中單擊?
http://jqueryui.com/demos/draggable/
如果我有:
<div id="someId" class="someClass">he</div>
<div id="otherId" class="otherClass">he2</div>
和:
$('#someid','#otherid').draggable({
drag: function(event, ui) {
alert(ui.helper.THEIDOFTHECLICKEDITEM); // What goes here?
}
});
如何獲得使用該ID的ID或類「 ui「變量從回調?如果不可能,我如何從「事件」變量中獲取它?