JSFiddle - React, Tailwind, and code Playground
by shanabus
HTML
<!DOCTYPE html>
<html>
<head>
<title>Sample Page</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
</head>
<body>
<div data-role="page" id="page1">
<div data-role="header">
<h1>
Page 1
</h1>
</div><!-- /header -->
<div data-role="content">
<a id="changePageButton" data-role="button">Change Page!</a>
</div><!-- /content -->
<div data-role="footer">
</div>
</div><!-- /page -->
<div data-role="page" id="page2">
<div data-role="header">
<h1>
Page 2
</h1>
</div><!-- /header -->
<div data-role="content">
<p>Hooray for page 2!</p>
</div><!-- /content -->
<div data-role="footer">
</div><!-- /fotoer -->
</div><!-- /page -->
</body>
</html>
JavaScript
$(function() {
$("#changePageButton").click(function() {
$.mobile.changePage("#page2");
});
});