JQuery JQueryMobile: Difference between revisions
(→API) |
(→API) |
||
| Line 11: | Line 11: | ||
===data-roles=== | ===data-roles=== | ||
* content | * content | ||
* footer | |||
* header | |||
* listview | * listview | ||
Revision as of 21:00, 30 May 2014
Concepts
jMobile web pages consist of different pages:
<div data-role="page" id="p1">content p1</div> <div data-role="page" id="p2">content p2</div>
API
- $() is short of jQuery()
- uses the data-role attribute
data-roles
- content
- footer
- header
- listview
ul tag
data-role="listview" data-filter="true" // makes the list searchable