Read-only Lists
Description
List views can display read-only views of data.
To create a read-only list, simply remove the anchor tags.
Example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<style>
.segmented-control {<!--from w ww .j a va 2s . co m-->
text-align: center;
}
.segmented-control .ui-controlgroup {
margin: 0.2em;
}
.ui-control-active, .ui-control-inactive {
border-style: solid;
border-color: gray;
}
.ui-control-active {
background: #BBB;
}
.ui-control-inactive {
background: #DDD;
}
</style>
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="content">
<ul data-role="listview">
<li><img src="http://placehold.it/50x50" />
<h3>Kung Fu Panda</h3>
<p>Rated: PG</p>
<p>Runtime: 95 min.</p></li>
<li><img src="http://placehold.it/50x50" />
<h3>Pirates</h3>
<p>Rated: PG-13</p>
<p>Runtime: 137 min.</p></li>
<li><img src="http://placehold.it/50x50" />
<h3>X-Men</h3>
<p>Rated: PG-13</p>
<p>Runtime: 131 min.</p></li>
<li><img src="http://placehold.it/50x50" />
<h3>Kung Fu Panda 3D</h3>
<p>Rated: PG</p>
<p>Runtime: 95 min.</p></li>
<li><img src="http://placehold.it/50x50" />
<h3>X-Men 3D</h3>
<p>Rated: PG-13</p>
<p>Runtime: 131 min.</p></li>
</ul>
</div>
</div>
</body>
</html>