I'm facing an issue with a short form that has two questions and radio buttons for answers. When the first question is answered "No," I used JS code to disable options for the second question, which works fine. However, if the answer is changed back to "Yes" on the first question, the second question remains disabled.
I want to allow users to change their minds and enable the second question if they switch from "No" to "Yes" on the first question. Can someone provide me with a solution?
var input = document.getElementById("jump-question");
function myFunction() {
if (input.checked == true){
alert("working")
document.getElementById("question-disable").setAttribute("disabled", true);
}
}