Create navbar with two buttons
Description
The following code shows how to create navbar with two buttons.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type='text/javascript'
src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css">
</head><!-- w w w . j a v a2 s . co m-->
<body>
<div data-role="page" id="page1">
<div data-role="header">
<p>Page 1</p>
<div data-role="navbar">
<ul>
<li><a href="#page1">To first</a></li>
<li><a href="#page2">To second</a></li>
</ul>
</div>
</div>
</div>
<div data-role="page" id="page2">
<div data-role="header">
<p>Page 2</p>
<div data-role="navbar">
<ul>
<li><a href="#page1">To first</a></li>
<li><a href="#page2">To second</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>