I want to automatically add new forms to a Django formset using Ajax, so that when the user clicks an \"add\" button it runs JavaScript that adds a new form (which is part o
@Paolo Bergantino
to clone all the handlers attached just modify the line
var newElement = $(selector).clone();
for
var newElement = $(selector).clone(true);
to prevent this problem.