I am trying to use a collapsible-set with JQM. When I write:
<div id="content" data-role="main" class="ui-content" >
<div class="box" data-role="collapsible">
<h3>lang</h3>
<p> lang = <input name="settings[lang]" value="en"></p>
</div>
</div>
it works fine, but when I try to build it out of JQuery it doesn't build a Collapsible. Code is like:
function f () {
var str = '<div class="box" data-role="collapsible">' +
'<h3>lang</h3>' +
'<p> lang = <input name="settings[lang]" value="en">' +
'</p>' +
'</div>';
$('#content').html(str);
}
Does anybody know what's wrong with that code?
Punching