You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cloned template/row that is being created duplicates ids. To address this, you can do the following,
// Disable all form elements inside the row template
$(container).children(self.settings.template).hide().find(':input').each(function() {
$(this).prop('disabled', true);
$(this).prop('id', '_' + this.id); // <------------------------ add this line
});
// Enable all form elements inside the row template
$(row_template).find(':input').each(function() {
$(this).prop('disabled', false);
$(this).prop('id', this.id.substr(this.id.indexOf('_') + 1)); // <--------------------- add this line
});
No more duplicate ids 😄
The text was updated successfully, but these errors were encountered:
The cloned template/row that is being created duplicates ids. To address this, you can do the following,
No more duplicate ids 😄
The text was updated successfully, but these errors were encountered: