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 ...

Get jQuery and JavaScript Phrasebook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.