Create collapsible with table and header
Description
The following code shows how to create collapsible with table and header.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css">
<script type='text/javascript'
src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
</head><!--from www . j a v a 2 s.c om-->
<body>
<div data-role="content">
<div data-role="collapsible" data-content-theme="c"
data-iconpos="right" align="center">
<h2 id="summaryid">
<span>Summary</span>
</h2>
<table>
<tr>
<td>Data1</td>
</tr>
<tr>
<td>Data2</td>
</tr>
<tr>
<td>Data3</td>
</tr>
<tr>
<td>Data4</td>
</tr>
</table>
</div>
</div>
</body>
</html>