Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
したがって、要素がドロップ可能である場合は、次のようなオプションを設定できることを知っています。
drop: function(){ alert('something was dropped'); }
しかし、ドロップされた要素を参照できるように設定するにはどうすればよいですか。次のようなことができます。
drop: function(){ alert(elementId + ' was dropped'); }
ありがとう。
drop: function(event, ui) { alert($(ui).attr("id") + " was dropped"); }