No Description

viewQuestionnaire.js 295B

12345
  1. function newThing(e) {
  2. let type = e.currentTarget.value;
  3. let range = e.currentTarget.parentNode.parentNode.parentNode.nextElementSibling; // get the 4 (optional) inputs for scaled-type questions
  4. range.style.display = (type === "1") ? 'block' : 'none'; // "1" corresponds to scaled questions
  5. }