Skip to content

Instantly share code, notes, and snippets.

@wookiehangover
Created April 10, 2011 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wookiehangover/912583 to your computer and use it in GitHub Desktop.
Save wookiehangover/912583 to your computer and use it in GitHub Desktop.
adding some list elements to a basic jQuery Mobile template
<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
<link rel="stylesheet" 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/jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>Hello World</h1>
</div><!-- /header -->
<div data-role="content">
<ul data-role="listview">
<li>Item 1</li>
<li>Item 2</li>
<li>
Item 3
<ul data-role="listview">
<li><a href="#">A nested list with links</a></li>
</ul>
</li>
</ul>
</div><!-- /content -->
</div><!-- /page -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment