December 2013
Intermediate to advanced
384 pages
9h 54m
English
jQuery Mobile elements are for the most part standard. jQuery Mobile formats them for better display on mobile devices. However, there are a few data attributes that you should be aware of:
data-role="fieldcontain"—Add to a container class around multiple form elements. Helps mobile elements, especially <label> elements, track closer.
class="ui-hide-label">—Adding this class to a fieldcontain container causes the label to hide.
data-role="button"—Forces <a> links to be displayed as mobile buttons.
data-icon—Specifies an icon ...
Read now
Unlock full access