Can anyone explain what is theses errors?
Uncaught TypeError: cannot read property 'innerHTML' of null
View on my website This is the line which is causing the error:
var idPost=document.getElementById("status").innerHTML;
Thanks
Are you declaring the <script>
tag before the #status
element?
If you do, the statement in that tag will be executed first, and now there is no element with the id status
.
The best way is to put this script tag right before the </body>
tag.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With