f.zz.de
posts /

JQuery vs. JQuery-ui

Posted Mon Dec 21 13:02:26 2015 Florian Lohoff
in

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" ...