I have a unordered list, which will be generated dynamically . I need to store the items in a list in an array .
this is my list:
<div id="xaxizd">
<ul id="xaxiz" style="list-style: none;" >
<li></li>
</ul>
</div>
I am trying to retrieve the value using this function. (Below mentioned code is in document.ready function is self)
var lisX = document.getElementById("xaxizd").getElementsByTagName("li");
alert(lisX[0].id);
But it is not working. Is there any other way to store list item values ? please help by finding the mistake or by suggesting any other method .
Thanks in advance
jquerytag??