JQuery vs. JQuery-ui
Posted Mon 21 Dec 2015 01:02:26 PM CET
Florian Lohoff
Why on earth is it possible to do an
$('#main').on('click', '.button', func);
But not
$('.dragable').draggable();
The latter works but not for newly added DOM objects. You need to reissue the draggable everytime you add new objects whereas the first also works for dynamic added objects.
I hear somebody scream "inconsistency" ...