Get Text Element
<p>I am a beginner. I am trying to pop up an alert box with the text contents of a <code>&lt;div&gt;</code>, but am getting <code>null</code>.</p>

<p>Javascript: </p>

<pre><code>alert(document.getElementById("ticker").value);
</code></pre>

<p>HTML</p>

<pre><code>&lt;asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"&gt;
    &lt;script src="Tick.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;/asp:Content&gt;

&lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"&gt;
            &lt;div   id="ticker"&gt;
               Sample
            &lt;/div&gt;
&lt;/asp:Content &gt;
</code></pre>

<p>What am I doing wrong?</p>
