how to get the jquery append method to start counting at index 0 during each execution of a each loop?
<p>how to get the jquery append method to start counting at index 0 during each execution of a each loop?</p>

<p>An unordered list gets external data appended() to it during the execution of a each loop.
Then it gets cleared out using either .html('') or .empty(); and then goes through the each loop again appending data to the unordere list again but during the second time, the index increases and does not start at 0 index during the second time of each loop. How do I get the append() to always start at index 0 during the execution of the each loop after clearing it out using either empty(); or .html(''); methods?</p>
