I have code written in JScript for a website I have implemented. The script is pretty straightforward, nothing too fancy. It works in Chrome and Firefox, but it does not execute in IE. I am getting the error
SSCRIPT5007: Unable to get the value of 'style': Object is null of undefined.
Now, I have already checked online for possible solutions. The one I see the most is that I need to include X-UA-Compatible in my meta tag, but it is already in there. Is there any other solution?
Specifically, my code fails at this part:
var extra_options = document.getElementsByName("myExtraOptions");
for(thisindex = 0; thisindex < 7; thisindex++) {
extra_options[thisindex].style.display = 'none';
}