Append listview to page content
Description
The following code shows how to append listview to page content.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.6.2.js'></script>
<script type='text/javascript'
src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css">
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){<!--from w ww. ja v a 2 s . c o m-->
$("#content").append($("ul"));
$("ul").listview();
});//]]>
</script>
</head>
<body>
<div data-role="page" id="page">
<div data-role="header">
<h1>Header</h1>
</div>
<div data-role="content" id="content"></div>
<div data-role="footer">
<h4>Footer</h4>
</div>
</div>
<ul data-role="listview">
<li><a href="foo">Foo</a></li>
<li><a href="bar">Bar</a></li>
</ul>
</body>
</html>