JQuery Mobile has the capability to automatically apply CSS and HTML for elements on the page based on the presence of specific data- attributes when the page initially loads.
However, if new HTML content is dynamically loaded onto the page after the JQuery Mobile rendering has occurred, this new content may not receive the necessary CSS classes.
The question arises: Is it possible to selectively call upon the Javascript to apply the rendering to only the new HTML content?
BEFORE
<div id="someDiv">
<ul data-role="listview" data-theme="b" data-inset="true">
<li>
<a href="#">
<h3>
Some title
</h3>
<p>
Some text
</p>
</a>
</li>
</ul>
</div>
AFTER
<div id="someDiv">
<ul data-role="listview" data-theme="b" data-inset="true" class="ui-listview ui-listview-inset ui-corner-all ui-shadow">
<li data-theme="b" class="ui-btn ui-btn-icon-right ui-li ui-corner-top ui-corner-bottom ui-btn-up-b">
<div class="ui-btn-inner ui-li ui-corner-top ui-corner-bottom">
<div class="ui-btn-text">
<a href="#" class="ui-link-inherit">
<h3 class="ui-li-heading">
Some title
</h3>
<p class="ui-li-desc">
Some text
</p>
</a>
</div>
<span class="ui-icon ui-icon-arrow-r"></span>
</div>
</li>
</ul>
</div>