jQuery Mobile: List Views Cheat Sheet

To create a list, apply the data-role="listview" to the <ol> or <ul> element. To make the items tappable, specify a link inside each list item (<li>):

<ol data-role="listview">
  <li><a href="#">List Item</a></li>

<ul data-role="listview">
  <li><a href="#">List Item</a></li>

List Dividers

<ul data-role="listview">
  <li data-role="list-divider">Europe</li>
  <li><a href="#">Norway</a></li>
  <li><a href="#">Germany</a></li>

Leave a Reply

Your email address will not be published. Required fields are marked *