Hi, i need help to create a recursive function to read all list structure
Hi, i need help to create a recursive function to read all list structure.
I need "alert()" the content inside of each "<li>" start from the first <ul> until the last one.
Bellow follows an example of list to works.... important... the function must be unchangeble.,, but must result the result accordly i change the list...
- <ul>
- <li>A</li>
- <li>B</li>
- <li>C</li>
- <li>D
- <ul>
- <li>A.1</li>
- <li>A.2</li>
- <li>A.3
- <ul>
- <li>A.3.1</li>
- <li>A.3.2</li>
- <li>A.3.3</li>
- </ul>
- </li>
- <li>A.4</li>
- <li>A.5</li>
- </ul>
- </li>
- <li>E</li>
- <li>F</li>
- </ul>
-
-
- Anybody can help me?
-
- thanks!