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.
ドラッグ可能なdivが約12個あるjQueryの重いWebアプリでは、それぞれに同じドラッグイベントを手動で追加する代わりに、すべてのドラッグ可能なdivに同じドラッグイベントが必要であることをjQueryに伝えることができますか?
もっと情報が必要ですが、次のようなことができますか?
<div class="draggable-div"></div> $("div.draggable-div").each(someDragunction);