diff --git a/jquery.formstyler.js b/jquery.formstyler.js index fba15c3..63b4124 100644 --- a/jquery.formstyler.js +++ b/jquery.formstyler.js @@ -152,6 +152,7 @@ // обновление при динамическом изменении el.on('refresh', function() { + el.closest('label').add('label[for="' + el.attr('id') + '"]').off('.styler'); el.off('.styler').parent().before(el).remove(); checkboxOutput(); }); @@ -221,6 +222,7 @@ // обновление при динамическом изменении el.on('refresh', function() { + el.closest('label').add('label[for="' + el.attr('id') + '"]').off('.styler'); el.off('.styler').parent().before(el).remove(); radioOutput(); }); @@ -1057,4 +1059,4 @@ } onDocumentClick.registered = false; -})); \ No newline at end of file +}));