108
rated 0 times
[
111]
[
3]
/ answers: 1 / hits: 24532
/ 11 Years ago, thu, october 17, 2013, 12:00:00
I have this code here:
document.getElementById('success').style.display(block);
document.getElementById('success').text(aaaa);
and I get this error, why?
Uncaught TypeError: Cannot read property 'style' of null
<span id=success style=color:#FFF; display:none;></span>
I moved my code to bottom of the page and I get this new error now
Uncaught TypeError: Property 'display' of object #<CSSStyleDeclaration> is not a function
More From » css