Is there a way to make cloze deletions invisible?

That second option worked beautifully.

Out of curiosity I wondered if I can do this for the inactive clozes as well. I tried:

<script>
	// get all clozes
	var element = document.getElementsByClassName("cloze");
	
	// hide them
	for (var i = 0; i < element.length; i++) {
		element[i].innerHTML = "";
	}

       element = document.getElementsByClassName("cloze-inactive");
	
	for (var i = 0; i < element.length; i++) {
		element[i].innerHTML = "";
</script>

But it doesn’t seem to work the same way.

For some context I’m trying to memorize different parts of this definition but i only want to reveal certain information when I test a particular cloze

vestragon(consonant-final, perfect participle vestreta)

  1. to say somthing (accusative) to someone (dative)
  2. to tell someone (dative) something (accusative)
  3. to speak
  4. (with impersonal subject and subjunctive) to seem,
    Hae hunē kirine Zaldrīzdōrot īlō vestretas.
  5. seems to someone (dative)
    Zāliapossa buqō ynot vestras.

Also some times simply knowing that there is more information gives away the answer for me