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>

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