Created
August 3, 2018 18:05
-
-
Save joelhsmith/b0440b24de14cdee1c4be2ecf2229990 to your computer and use it in GitHub Desktop.
Deduplicate the labels in choice questions in Qualtrics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const labelCheckboxeChoices = Array.from(document.querySelectorAll('.q-checkbox')); | |
const labelRadioChoices = Array.from(document.querySelectorAll('.q-radio')); | |
var labelAllChoices = labelCheckboxeChoices.concat(labelRadioChoices); | |
labelAllChoices.forEach(function(e) { | |
if (e.innerText === '') { | |
e.remove(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment