diff --git a/fiches/static/fiches/js/forms.js b/fiches/static/fiches/js/forms.js index 916c775..7856a5e 100644 --- a/fiches/static/fiches/js/forms.js +++ b/fiches/static/fiches/js/forms.js @@ -9,7 +9,7 @@ class SubEntry { this.subEntryElement = subEntryElement; this.removeButtonElement = subEntryElement.querySelector(".remove-button"); - this.deletionCheckboxElement = subEntryElement.querySelector("input[type=checkbox]"); + this.deletionCheckboxElement = subEntryElement.querySelector("input[id$='DELETE']"); this.addPlaceholderAttributes(); this.startHandlingSubEntryRemoveButtonClicks();