Solution: This question has been asked and answered in another post: jQuery Mobile does not apply styles after dynamically adding content
original question:
I am using jQuery Mobile to design the UI of my app, it works on static html. For example, following code snippet would create a listview:
<ul data-role="listview">
<li><a href="acura.html">Acura</a></li>
<li><a href="audi.html">Audi</a></li>
<li><a href="bmw.html">BMW</a></li>
</ul>
But if that piece of html code is created and appended on the fly, you would not see the effect added by jQuery Mobile, how can I make it work?