function HideSectionTwo() {
if(document.getElementById("S1Q1A").checked == true) {
document.getElementById("sectiontwo").style.display = "";
}
else {
document.getElementById("sectiontwo").style.display = "none";
}
}
I'm new to JavaScript, but I'm trying to create a multi-choice quiz with 4 questions in each section. After all the answers have been correctly edited in this section, it will display the next section. For my HTML, I use tables and store the entire section in these separate tables that have the identifier "sectionone", "sectiontwo", etc. The code above is what I was working on. I tried getElementByClass and assigned my element names to classes, but that didn't work. I'm just stuck and need to understand which direction to go.
script . 1 1 , "sectiontwo".