Problem with a collapsible class in jqmobile
Hi i dont understand why is not working my collapsible role... the code is:
the fragment of the html:
- <div data-role="collapsible"><h3>Standard equipment</h3>
- <div id="div_equipamiento_standard">
-
- <!-- Here is the elements charged from .js-->
- </div>
The fragment of .js
- var eq_standard = '';
- $.each(objVehicle.equimapiento_standard, function (i, item){
- //Titulo de la seccion
- eq_standard = eq_standard+'<div data-role="collapsible"><h3>'+i+'</h3><div class="texto"><span id="equipamiento_span">';
- $.each(item, function(i, item){
- eq_standard = eq_standard+ ' - ' + item + '<br />'
- });
- eq_standard = eq_standard +'</span></div></div>';
- });
-
- alert(eq_standard);
-
-
- $('#div_equipamiento_standard').html(eq_standard);
- });
The problem is in the .js... on
eq_standard = eq_standard+'<div data-role="collapsible"><h3>'+i+'</h3><div class="texto"><span id="equipamiento_span">'; but i dont uderstand why the html dont charge the collapsible, but the <h3> charges correctly.
Thanks all and i hope you can understand the problem my english is a little bit bad.