document.getElementById().value return undefined in chrome
<pre><code>&lt;div id="hour" style="display: none"&gt;2&lt;/div&gt;
</code></pre>

<p>js code:</p>

<pre><code>&lt;script type="text/javascript"&gt;
    var _h = document.getElementById('hour').value
    alert(_h);
&lt;/script&gt;
</code></pre>

<p>in chrome return "undefined",what the problem ?thank you</p>
