I have a ul list inside which li is there, and inside li text and div are there. the same class is assigned to li while div is assigned with a different class name.
I just want to get the text from div and not from li.
Just need to get the "I need this text 112" from the div. I am trying:
li = ul.getElementsByTagName('li');
<ul class="category">
<li class="hero" href="page1.htm">
<a href="page1.htm"><img src="img/001.png" /></a>
<div class="Hello">
<a href="page1.htm">I need this text 112</a>
</div>
</li>
But it gives me an error.