Can anyone explain what is theses errors?
Uncaught TypeError: cannot read property \'innerHTML\' of null
View on my website This
The question doesn't ask for jquery. So lets do it without jquery:
document.addEventListener("DOMContentLoaded", function(event) {
//Do work
});
Note this method will not work on IE8.
You are calling this script before DOM is ready. If you write this code into jquery's $(function() method it will work.