Destroy JQuery draggable
问题 I have a set of elements that are draggable. How can I remove draggable function? $('.draggable').draggable('disable') is not an option in my case $('.draggable').draggable('destroy') returns Uncaught TypeError: Cannot read property 'options' of undefined 回答1: From the jQuery UI API: destroy() Removes the draggable functionality completely. This will return the element back to its pre-init state. This method does not accept any arguments. Code examples: Invoke the destroy method: $( "