I'm trying to add a div dynamically using jQuery mobile, but after adding it, the CSS is not applied even with the refresh.
The is the example.
Code :
$(function() {
$("#data").append('<div data-role="collapsible"><h3>Div2</h3><p>Content Div2...</p></div>');
$("#data").listview("refresh");
});