For some strange reason I get a weird error.
I have an element (which I’d defined with PHP) that eventuly looks like this:
<span id="l_area_1_5" style="display: inline; ">
...some html inputs and stuff....
</span>
Which I am certain by Inspect Element of the Chrome.
Now when I try to address to it programaticly with this:
document.getElementById("1_area_1_5").style.display = 'none';
I get the Cannot read property 'style' of null error.
I have no idea what the hell that’s supposed to mean, any help?
The error means that the element doesn’t exist. It’s because you have a typo. You wrote
1instead ofl.