Jump to content

Style is not or not an object


cturner

Recommended Posts

The title should explain it all. I have a lot of code so I have posted only the line that the error is on. If you need to see more I post some more. So can someone please help me solve that error? Thanks in advance.

 

var regidtype = document.getElementById('regidtype').value;
regidtype.style.visibility = "visible"; // this is where the error is

<div class="regidtype" id="regidtype">Registrant ID Type:</div>

Link to comment
https://forums.phpfreaks.com/topic/61438-style-is-not-or-not-an-object/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.