jQuery Mobile – Defining multiple local pages

How to define multiple pages within one single HTML file

<div data-role="page" id="main-page">
    <div data-role="header">
        //Content
    </div>
    <div data-role="content">
        //Content
    </div>
    <div data-role="footer">
        //Content
    </div>
</div>
<div data-role="page" id="subpage-1">
    <div data-role="header">
        //Content
    </div>
    <div data-role="content">
        //Content
    </div>
    <div data-role="footer">
        //Content
    </div>
</div>
VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
Share
You can leave a response, or trackback from your own site.

2 Responses to “jQuery Mobile – Defining multiple local pages”

  1. Fiqueroa says:

    Very neat stuff. Do you do any guest posting on other blogs?

  2. Shavonne Kenik says:

    Hey! Brilliant post!

Leave a Reply

Comments links could be nofollow free.

Twitter Delicious Facebook Digg Stumbleupon Favorites More