Tag: visibility

[ANSWERED] javascript – div visibility by java script not working

Solution 1 : The for attribute in the label accepts the element id, not the name Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label#Attributes function yesnoCheck() { if (document.getElementById('yesCheck').checked) { document.getElementById('ifYes').style.visibility = 'visible'; } else document.getElementById('ifYes').style.visibility…