I am trying to include a collapsible widget in jquery mobile. The content is dynamic so I am using a markup to do this, but just for illustration I have included default text. The following code just brings no widget but just the text appears, the styling of the widget doesn't appear. Here is my javascript
description_markup += '<h4>Description heading</h4><p>'+description+'</p>';
$('#Desc').empty().append(description_markup);
HTML
<div data-role="content" class= "ui-content" data-theme="d">
<p id="message"/>
<div id ="videoDisplay"></div>
<div id ="vidLikeDislikebutton"></div>
<div id ="Desc" data-role="collapsible"
data-theme="b" data-content-theme="b"
class="ui-collapsible ui-collapsible-inset
ui-collapsible-themed-content">
</div>
</div><!-- /content -->
when I put the Desc div outside the content div, the text appears with a black background.
Please help