JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css">
<script src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<title>Collapse</title>
</head>
<body>
<div data-role="page" id="master">
<div data-role="header">
<h1>Master</h1>
</div>
<div data-role="content">
<a href="#detail" data-role="button">To Detail Page</a>
<div data-role="collapsible" id='coll'>
<h3>I'm a header</h3>
<p>
I'm the collapsible content. By default I'm open and displayed on the page, but you can click the header to hide me.
</p>
</div>
</div>
</div>
<div data-role="page" id="detail">
<div data-role="header">
<h1>Detail</h1>
</div>
<div data-role="content">
<a id='unfold' href="#master" data-role="button">
To Master Page
</a>
</div>
</div>
</body>
</html>
JavaScript
$(document).ready(function () {
$('#unfold').bind('click', function(event) {
$('#coll').trigger('expand');
});
});