How do I set the value of an input field via javascript
<p>Can someone tell me why this markup/script errors out and doesnt put "Waltdog" into the Hidden1 input field?</p>

<pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
    &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;script&gt;
    document.getElementById("Hidden1").value = 'Waltdog';
&lt;/script&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
        &lt;div&gt;
            &lt;input id="Hidden1" type="hidden" runat="server" /&gt; 
            Let me know if you see this!!! You crazy Texicans are harshing my Wednesday vibe! :)
        &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
</code></pre>

<p></p>
