JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.css">
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test</title>
</head>
<body>
<div data-role="page" id="a">
<div data-role="header">
<h1>Test</h1>
</div>
<div data-role="content" id="content">
<a id="open_dialog">open dialog</a><br/>
</div>
</div>
<div data-role="page" id="b">
<div data-role="header">
<h1>dialog header</h1>
</div>
<div data-role="content">
dialog
</div>
</div>
</body>
</html>
JavaScript
$(document).ready(function() {
$('#open_dialog').bind('click', function() {
$.mobile.changePage('#b', {
role: 'dialog'
});
});
});