title: Appending <li> to <ul> Jquery Mobile
body: <p>I have 2 collapsable div's with list's in both of them. Each list is supposed to display JSON information dynamically. I have the following HTML:</p>
  
  <pre><code>&lt;body&gt;
      &lt;div data-role="collapsible-set" data-theme="c" id="set"&gt;
          &lt;div data-collapsed="true" data-role="collapsible" data-theme="b" id="trip1"&gt;
              &lt;h3&gt;Trip 1&lt;/h3&gt;
              &lt;ul data-role="listview" id="info1"&gt;
                  &lt;li&gt;Name 1&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;div data-collapsed="true" data-role="collapsible" data-theme="b" id="trip2"&gt;
              &lt;h3&gt;Trip 2&lt;/h3&gt;
              &lt;ul data-role="listview" id="info2"&gt;
                  &lt;li&gt;Name 2&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>and the following script:</p>
  
  <pre><code>&lt;script&gt;
      $(function() {
          $('#trips').collapsible();
      });
      $.getJSON('http://141.219.205.44:8080/json/trip/list', function(data) {
  
          for ( var i = 0; i &lt; 2; i++) {
               $('#info1 ul').append('&lt;li&gt;' + data[i].name + '&lt;/li&gt;').listview('refresh');
          }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>I know it retrieves the JSON data just fine, I just can't get it to append to the !</p>