Matas Vaitkevicius
Matas Vaitkevicius

Reputation: 61459

JQuery mobile single page or multi-page mode?

How to know what mode of JQuery mobile am I using?
Is having data-role="page" is enough of multi-page mode indication?

Upvotes: 0

Views: 79

Answers (1)

coconut
coconut

Reputation: 26

If you have several div with data-role='page' in your html file you are using a multi-page template, on the other hand if you have only one you are using a single page template.

If you got a multi-page template your link to page2 is simply refering to the second page id :

<a href="#page2">go</a>

Upvotes: 1

Related Questions