Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
jQuery Mobile Web Development Essentials-Third Edition

You're reading from   jQuery Mobile Web Development Essentials-Third Edition Build a powerful and practical jQuery-based framework in order to create mobile-optimized websites

Arrow left icon
Product type Paperback
Published in Mar 2016
Publisher
ISBN-13 9781783555055
Length 266 pages
Edition 3rd Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Andy Matthews Andy Matthews
Author Profile Icon Andy Matthews
Andy Matthews
Raymond Camden Raymond Camden
Author Profile Icon Raymond Camden
Raymond Camden
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Preparing Your First jQuery Mobile Project FREE CHAPTER 2. Working with jQuery Mobile Pages 3. Enhancing Pages with Headers, Footers, and Toolbars 4. Working with Lists 5. Getting Practical – Building a Simple Hotel Mobile Website 6. Working with Forms and jQuery Mobile 7. Creating Grids, Panels, and Other Widgets 8. Moving Further with the Notekeeper Mobile Application 9. jQuery Mobile Configuration, Utilities, and JavaScript Methods 10. Working with Events 11. Enhancing jQuery Mobile 12. Creating Native Applications 13. Becoming an Expert – Building an RSS Reader Application Index

Creating lists

As you've (hopefully!) come to learn, jQuery Mobile takes an approach of enhancement when it comes to UI. You take ordinary, simple HTML and add a bit of markup (sometimes!), and jQuery Mobile will do the heavy lifting of enhancing the UI. The same process applies to lists. We've all worked with simple lists in HTML before; the following code snippet is an example:

<ul>
  <li>Raymond Camden</li>
  <li>Scott Stroz</li>
  <li>Todd Sharp</li>
  <li>Dave Ferguson</li>
</ul>

We all know how they are displayed (a bulleted list in the case of the previous code snippet). Let's take that list and drop it in a simple jQuery Mobile-optimized page. The code in Listing 4-1 takes a typical page and drops in our list:

Listing 4-1: test1.html
    <div data-role="page">
      <div data-role="header">
        <h1>My Header</h1>
      </div>
      <div role="main...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image