One of hundreds of answers available with our premium content service.
A: An element's style.visibility property does not affect its accessibility through the document object model; if that were the case it would only be possible to hide objects, they could never be set visible again. However, you must ensure check the existence of the element reference and relevant properties before you attempt to set them, as below.
… full answer hidden
Premium members click below for full answer
How should I refer to a form input that is not visible?
We love social media, but we do not expect you to create yet another public outpost on the Web.