O'Reilly logo

jQuery and JavaScript Phrasebook by Brad Dayley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting Started with jQuery Mobile

Much of the jQuery Mobile framework is built on extending the current HTML elements with additional functionality. jQuery Mobile builds on the HTML framework by adding data attributes to the HTML elements.

All the data attributes begin with data- and end with some slightly descriptive word of what the attribute means. The jQuery Mobile library’s additional methods, events, styles, and values that fit the mobile needs are attached to the element. You will see this extensively in the examples to come.

Table 14.1 lists many of the attributes along with some of the values they support. The table is a good way to visualize how the data attribute method works and can act as a reference.

Table 14.1 A Few of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required