jQuery Mobile Framework

Navigation Search

Question:

How do I load a page?

Answer:

To load an external page, enhance its content, and insert it into the DOM, use the loadPage method. There are a lot of methods and properties that you can set when loading pages, but here is a simple example:


//load the "about us" page into the DOM
$.mobile.loadPage( "about/us.html" );
All Questions & Answers