title: jQuery Mobile does not apply styles after dynamically adding content
body: <p>I know this questions appear several places (<a href="https://stackoverflow.com/questions/6297470/forcing-jquery-mobile-to-re-evaluate-styles-theme-on-dynamically-inserted-conten">Forcing jQuery Mobile to re-evaluate styles/theme on dynamically inserted content</a>) but not with an answer that is working for me.</p>
  <p>I'm loading some content using ajax, and inserting it into a div like this:</p>
  <pre><code>       $.ajax({
              url: &quot;../Services/CalendarService.cshtml?service=true&quot;,
              cache: false,
              success: function (data) {
  
                  data = $.parseJSON(data);
                  var s = $(&quot;#user_tmpl&quot;).html();
                  var s1 = tmpl(s, data);
  
                  $(&quot;#target&quot;).html(s1);
                  $(&quot;#targetRefresh&quot;).page();
              }
          });
  </code></pre>
  <p>I've tried setting the targetRefresh on both the target I'm adding the html to, and on the page, but with no luck. The conent is inserted, but styles not applied.</p>
  <p>I've also tried</p>
  <pre><code>.trigger(&quot;enhance&quot;)
  </code></pre>
  <p>Any idea what to do?</p>
  <p>The html that inserted are a bunch of these:</p>
  <pre><code>&lt;div data-theme=&quot;e&quot; data-collapsed=&quot;true&quot; data-role=&quot;collapsible&quot;&gt;         &lt;h3&gt;MyOwner2AA&lt;/h3&gt;         &lt;p&gt;MyDescription&lt;/p&gt;         &lt;p&gt;/Date(1320339836735)/&lt;/p&gt;         &lt;p&gt;MyOwner&lt;/p&gt;         &lt;i&gt;&lt;/i&gt;     &lt;/div&gt;
  </code></pre>
  <p>Thanks for any help</p>
  <p>Larsi</p>