Can not show collapsible in pop up

Can not show collapsible in pop up

I want to show json data in popup then it show collapsible. But It doesn't show, help me please.


//Show Detail in java script
$("#txtDetail").append("<div data-role='collapsible' data-inset='false'><h5>" + val.name + "(" + val.notable.name + ")</h5><p><table cellpadding='1' cellspacing='1' border='0' style='font-family:tahoma;font-size:8pt;'><tr><td><img src='https://usercontent.googleapis.com/freebase/v1/image" + val.mid + "' alt='' /></td><td><span width='80%'>" + DecArticle.property["/common/topic/article"].values[0].property["/common/document/text"].values[0].text + "</span></td></tr></table></p></div>");

//HTML
<div data-role="popup" id="popupInfo" data-theme="c" style="max-width:550px;max-height:350px;">
        <h2><input type="hidden" id="txtHid" /></h2><!-- /txtsch -->
        <div id="txtDetail" data-role="collapsible-set" data-theme="b" data-content-theme="c" data-collapsed-icon="arrow-r" data-expanded-icon="arrow-d" style="margin:0; width:250px;">
        </div><!-- /detail -->
        <input type="hidden" id="idHid" /><!-- /mid -->
    </div><!-- /popup -->