Remove first item from listview
Description
The following code shows how to remove first item from listview.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.6.4.js'></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.0rc1/jquery.mobile-1.0rc1.min.css">
<script type='text/javascript'
src="http://code.jquery.com/mobile/1.0rc1/jquery.mobile-1.0rc1.min.js"></script>
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){<!--from w w w.ja v a 2 s .c o m-->
$('ul#listOfSheets li:first').remove();
$('#listOfSheets').listview('refresh');
});//]]>
</script>
</head>
<body>
<div data-role="content" data-theme="b">
<div>
<ul id="listOfSheets" data-role="listview" data-inset="true">
<li class="hidden"><a href="#" data-ajax="false">Link 1</a></li>
<li class="hidden"><a href="#" data-ajax="false">Link 2</a></li>
<li class="hidden"><a href="#" data-ajax="false">Link 3</a></li>
</ul>
</div>
</div>
<!-- /content -->
</body>
</html>