JavaScript getElementById().value doesn't work
<p>Is there anything wrong with the code? It's not working.</p>

<pre><code>&lt;script&gt;
t=document.getElementById('good');
document.write(t.value);
&lt;/script&gt;
</code></pre>

<p>HTML:</p>

<pre><code>Type-here: &lt;input id='good' type='text' value="my value is high"&gt;
</code></pre>
