diff --git a/input/static/js/project-categories.js b/input/static/js/project-categories.js index 63e99d1..5ea6e3b 100644 --- a/input/static/js/project-categories.js +++ b/input/static/js/project-categories.js @@ -6,6 +6,7 @@ const otherInput = $(otherInputSelector); const otherLabelSelector = 'label'.concat('[for="', this.id, '_other"]'); const otherLabel = $(otherLabelSelector); + const otherTableRow = otherInput.parents('tr'); const toggle = function () { const checked = otherCheckbox.prop('checked'); @@ -13,7 +14,7 @@ otherInput.prop('disabled', !checked); otherInput.prop('required', checked); otherLabel.toggleClass('required', checked); - otherLabel.css('opacity', checked ? 1 : 0.3); + otherTableRow.css('visibility', checked ? 'visible' : 'collapse'); if (checked) { otherInput.focus();