In the previous chapter, we worked on a file that had a simple page of text. For our first modification, we're going to add another page to the file and create a link to it. If you remember, jQuery Mobile looks for a particular
<div> wrapper to help it know where your page is:
<div data-role="page">. What makes jQuery Mobile so simple to use is that we can add another page by simply adding another div using the same format. The following code snippet
shows a simple example of this feature:
Listing 2-1: test1.html <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Multi Page Example</title> <link rel="stylesheet" href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css" ...