Why can't I edit the style property with javascript? : So, I was just trying to make a <div> appear on an onkeyup event with javascript and for some reason, it didn't let me do it and I got the error: **Uncaught TypeError: Cannot read property 'style' of null**


This is my code: 

HTML:
```
<div class="content" id="content" style="display: none">
```

Javascript:
```
function showContent() {
    document.getElementById('content').style.display = 'block';
}
```

Can you please help? Thanks.