Can .sortable apply to dynamically added objects?
javascript, jquery
Solution
In short: No.
Take note of the following: `.live` has been deprecated since jQuery 1.7, and is removed in jQuery 1.9. This functionality has been moved/replaced by the `.on` method. This method can only detect event handlers, like `click` etc. `.sortable` isn't an event handler, so this wouldn't work.
The only thing you can do, is to call the `.sortable` method (from jQuery UI) after you created the elements.
Problem
Can anyone please explain that whether `.sortable` can apply to future jQuery objects that will be dynamically added, which means it doesn't exist in the current DOM , just like the deprecated `.live` function? Thanks.