Add items to filtered listview
Description
The following code shows how to add items to filtered listview.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.8.3.js'></script>
<script type="text/javascript"
src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.css">
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){<!--from w w w .java2s .c o m-->
for (i=0; i<=5; i++){
$("ul").append("<li>something" + i + "</li>");
}
});//]]>
</script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>My Title</h1>
</div>
<!-- /header -->
<div data-role="content">
<ul data-role="listview" data-inset="true" data-filter="true"
id="fieldList">
<li>Test</li>
</ul>
</div>
<!-- /content -->
</div>
<!-- /page -->
</body>
</html>