title: ajax json php callback lost css jquery mobile
body: <p>I'm developing a web app, using Jquery Mobile, I have to make an Ajax/Json to a  PHP  to retrieve MySQL data, when I get the JSON Callback, and create the "list" from the array, the path of the jquery mobile css file get lost, and my  is not well formed. This is my code :</p>
  
  <pre><code>$.ajax({
      url: "busca_reservas.php",
      data: "fecha=" + fecha + "",
      dataType: 'json',   
      type: "POST",
      cache: false,
      success: function(data){
          var output = '&lt;ul data-role="listview" data-inset="true" id="reservas" class="listareservas"&gt;';
  
          var logsData = data;
          for (var i in logsData.logs){
              regis  = logsData.logs[i].recid;
              nombre  = logsData.logs[i].nombre;
              ape     = logsData.logs[i].apellido;
              output+= '&lt;li&gt;&lt;a href="#"&gt;' + regis + "  " + nombre + " " + ape + '&lt;/a&gt;&lt;/li&gt;';
  
          }
          output+='&lt;/ul&gt;';
  
          $('.listareservas').listview('refresh');
          $("#result").append(output).fadeIn(500);
  
          console.log(output)
      }
  });
  </code></pre>
  
  <p>The content in my  looks like plain text, instead of Jquery Mobile "List View".
  Any help wil be welcome ?</p>
  
  <p>Thanks in advanced</p>