Create ordered listview
Description
The following code shows how to create ordered listview.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.5.2.js'></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css">
<script type='text/javascript'
src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
<style type='text/css'>
.oi-li-heading {<!--from w w w . ja v a2s .co m-->
font-size: 16px;
font-weight: bold;
margin: .6em 0;
}
.oi-li-desc {
font-size: 12px;
font-weight: normal;
margin: -.5em 0 .6em;
}
</style>
</head>
<body>
<div data-role="page" data-theme="b" id="jqm-home">
<div data-role="content">
<ol data-role="listview">
<li><span> <span class="oi-li-heading">heading 1</span>
<span class="oi-li-desc">description 1</span>
</span></li>
<li><span> <span class="oi-li-heading">heading 2</span>
<span class="oi-li-desc">description 2</span>
</span></li>
<li><span> <span class="oi-li-heading">heading 3</span>
<span class="oi-li-desc">description 3</span>
</span></li>
</ol>
</div>
</div>
</body>
</html>