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:
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
code 2-1 shows a simple example of this feature:
code 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/1.3.2/jquery.mobile-1.3.2.min.css" ...