title: JqueryMobile Listview remove old values
body: <p>I am calling the following code in .ajax call to webservice and getting the values into "public_tweets". The code works fine and also populates the data into listview. The problem is if I call this piece of code twice(like on button click), the values in the listview which were populated before remains and a new group of listview is addedd. How to display listview only for the recent search ...????. Apprecite all the help...!!!!</p>
  
  <pre><code> $("#placeholder").after('&lt;ul id="unfinshed" data-role="listview" data-theme="b" data-inset="true"&gt;&lt;/ul&gt;');
         // $('#unfinshed').empty();
          for (var x = 0; x &lt; public_tweets.length; x++) {
              var txt = public_tweets[x];
              $('&lt;li&gt;&lt;a href="#"&gt;' + txt.Name + '&lt;/a&gt;' +
              '&lt;ul data-theme="c" data-inset="true"&gt;' +
              '&lt;li&gt; ' + txt.Phone + '&lt;/li&gt;' +
              '&lt;li&gt; ' + txt.Email + '&lt;/li&gt;' +
              '&lt;li&gt; ' + txt.City + '&lt;/li&gt;' +
              '&lt;li&gt; ' + txt.State + '&lt;/li&gt;' +
              '&lt;li&gt; ' + txt.Country + '&lt;/li&gt;' +
              '&lt;/ul&gt;' +
              '&lt;/li&gt;').appendTo("#unfinshed");
  
          }
          $("#unfinshed").page();
  </code></pre>