I have various <li> elements in a label in my aspx page. I want to use Javascript to fetch one <li> element at a time and perform some action on it. I have no idea how to do it;
which function should I use?
Earlier I got a list for the same in C#, but I can’t iterate over it in Javascript, so I converted it to <li> so that it can be accessed by Javascript.
how are you trying to manipulate them? what would you do, this will insert them into an array called li and the for loop will cycle through. but what is it you want to do?
live example: http://jsfiddle.net/yTXuK/