Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery mobile collapsible listview doesnt work with li tags

I tried collapsible listview but does not work why? such as:

<div data-role="collapsible" data-content-theme="c">
   <h3>LIST</h3>
  <ul>
     <li><a href="#">A</a></li>
     <li><a href="#">b</a></li>
     <li><a href="#">c</a></li>
  </ul>
</div>

if click the header,should be open the other 'li' tags.how can i do that? enter image description here

like image 521
erginduran Avatar asked Dec 06 '25 16:12

erginduran


1 Answers

I think you need a collapsibleset:

<div data-role="collapsibleset">
    <div data-role="collapsible">
        <h2>List</h2>   
        <ul data-role="listview">
          <li><a href="#">A</a></li>
          <li><a href="#">b</a></li>
          <li><a href="#">c</a></li>
        </ul>
     </div>
</div>

JSFiddle

like image 152
Sga Avatar answered Dec 08 '25 04:12

Sga



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!