remove and rebinding li tags to ul is not working
<p>I am trying to rebind the li tags by removing it and again rebinding it. The ul tag is generated dynamically. My code to remove the li tags is this...</p>

<pre><code>$("#ulActivity li").remove();
</code></pre>

<p>this line is removing all li tags perfectly, but append new set of li is not working...</p>

<pre><code>$.each(objTaskActivityList, function(i,v){                    
     $("#ulActivity ul").append('&lt;li&gt;&lt;a onclick="javascript:openfile(\''+v.DOCName+'\')"&gt;'+v.DOCName+'&lt;/a&gt;&lt;/li&gt;');
});
</code></pre>

<p>where i am doing mistake..</p>
