CHAPTER 29

image

The Dialog & Popup Widgets

In this chapter, I introduce the first two jQuery Mobile widgets: the dialog and popup. jQuery Mobile widgets behave slightly differently from those in jQuery UI, but – as you’ll learn – there is a common approach that underpins both libraries. Table 29-1 provides the summary for this chapter.

Table 29-1. Chapter Summary

Problem Solution Listing
Create a dialog widget. Add the data-role attribute with a value of dialog to a div element that contains the dialog content or the data-rel attribute, also with a value of dialog, to a navigation link that will open the dialog. 1, 2
Create a dialog ...

Get Pro jQuery 2.0, Second Edition 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.