Replacing list of li in a div with another list of li in the same div
<p>How do I replace a list of li in a div with another list of li in the same div? I tried this:</p>

<pre><code>   $("#divList").empty();
   $('#divList').append('&lt;li&gt;'  + textValue + '&lt;/li&gt;');
</code></pre>

<p>I want to clear out all data that was originally in the div and replace data using the same div at the same margin-left and margin-top as first list of li.</p>

<p>In my code, the div is emptied, but the li is not appended.</p>
