Possible Duplicate:
Access DIV element from JavaScript
I have a HTML code like :
<div id="headerlist" >
<h3> Enrollment Efficiency</h3>
</div>
I have to access element Enrollment Efficiency
I am trying with :
var headerlist = document.getElementsById('headerlist');
alert("the value of headerlist is "+ headerlist.firstChild);
But its not working.