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.
jquery ui の .draggable() インタラクションは、「任意の DOM 要素でドラッグ可能な機能を有効にする」と述べています。ただし、次の場合は機能しません。
<button id="btnWTF">WTF</button>
と
$(document).ready(function() { $("#btnWTF").draggable(); });
何かご意見は?
これを試してください。これにより、ボタンのデフォルトのクリックイベントがキャンセルされます。
$('#btnWTF').draggable({cancel:false});