areyouready344
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>
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://api.jquery.com/detach/