Link to home
Start Free TrialLog in
Avatar of areyouready344
areyouready344Flag for United States of America

asked on

how to get to the previous list of li element after removing them?

how to get to the previous list of li element after removing them?

For example, lets say I have the following

$("#list_A").html('');

This display in div ---------------> aaaaa bbbb ccccc
Now I clear out the div with --> $("#list A").html('');
And reload it with -------------->  ddddd eeeee ffffffff gggg
How do I return to the previous --> aaaaa bbbb ccccc
<div>
           <ul id="list_A">
                     <li>aaa</li>
                     <li>bbb</li>
                     <li>cccc</li>
                     <li>ddd</li>
                     <li>eee</li>
                     <li>ffffff</li>
                     <li>gggg</li>
           </ul>
</div>
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial