I am working on an application using jquery mobile. I need to include a few pages in one preview page before a final Submit of form.
Here is a basic idea about my application. It needs at least 10-15 forms to collect the data from user. And my html looks something like this:
<html>
<head>
<title>Title</title>
</head>
<body>
<div data-role="page" id="login-page">
</div>
<div data-role="page" id="form1-page">
<!-- CONTENT -->
</div>
<div data-role="page" id="form2-page">
<!-- CONTENT -->
</div>
<div data-role="page" id="preview-page">
<!-- CONTENT -->
</div>
</body>
</html>
I have linked my Preview button to preview page. The problem is, I want to include all the forms' page with filled values in preview page dynamically.
Can anyone help me with that?
P.S: I already tried to google. I found this answer. But may be I misunderstood something as it didn't work in my case.
Note: I am rendering this in android webview.