how to access element in div using javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/12248617/access-div-element-from-javascript">Access DIV element from JavaScript</a>  </p>
</blockquote>



<p>I have a HTML code like :</p>

<pre><code>&lt;div id="headerlist" &gt;
&lt;h3&gt; Enrollment Efficiency&lt;/h3&gt;
&lt;/div&gt;
</code></pre>

<p>I have to access element Enrollment Efficiency </p>

<p>I am trying with :</p>

<pre><code>var headerlist = document.getElementsById('headerlist');
alert("the value of headerlist is "+ headerlist.firstChild);
</code></pre>

<p>But its not working.</p>
