SlideShare a Scribd company logo
JQuery	
  +	
  JQuery	
  Mobile	
  
Jussi	
  Pohjolainen	
  
Tampere	
  University	
  of	
  Applied	
  Sciences	
  
Overview	
  
•  JQuery	
  
–  Most	
  popular	
  JavaScript	
  library	
  to	
  simplify	
  client-­‐side	
  scripBng	
  
–  DOM	
  Handling,	
  animaBons,	
  events,	
  AJAX	
  
–  Hides	
  browser	
  differences!	
  
•  JQuery	
  UI	
  
–  Desktop	
  widgets,	
  such	
  as	
  date	
  picker,	
  dialog,	
  progress	
  bar,	
  tabs…	
  
–  Built	
  on	
  top	
  of	
  JQuery	
  
•  JQuery	
  Mobile	
  
–  Mobile	
  app	
  framework,	
  mainly	
  touch	
  UI	
  widgets	
  
–  Support	
  for	
  all	
  mobile	
  operaBng	
  systems	
  
–  Built	
  on	
  top	
  of	
  JQuery	
  
•  Possible	
  to	
  mix:	
  JQuery	
  (dom	
  handling)	
  +	
  JQuery	
  Mobile	
  (UI).	
  
PhoneGap?	
  
•  PhoneGap	
  (Adobe)	
  framework	
  allows	
  to	
  build	
  hybrid	
  
apps	
  for	
  mobile	
  plaTorms	
  
•  Hybrid	
  apps?	
  
–  Web	
  apps	
  (HTML5+JS)	
  that	
  are	
  wrapped	
  inside	
  of	
  naBve	
  
WebView	
  widget	
  
•  Benefits	
  
–  Can	
  be	
  sold	
  in	
  app	
  stores	
  
–  Can	
  access	
  naBve	
  APIs	
  
•  One	
  possible	
  stack	
  for	
  building	
  cross	
  plaTorm	
  apps:	
  
–  JQuery	
  for	
  DOM	
  and	
  AJAX	
  Handling	
  
–  JQuery	
  Mobile	
  for	
  User	
  Interface	
  
–  PhoneGap	
  for	
  wrapping	
  the	
  app	
  as	
  naBve	
  
JQUERY	
  
Quick	
  Start	
  
•  Download	
  JQuery	
  file	
  (hp://jquery.com/)	
  
– 1.x	
  
– 2.x	
  
•  Smaller	
  and	
  faster,	
  but	
  does	
  not	
  support	
  ie6,	
  7	
  or	
  8.	
  
•  Windows	
  Phone	
  8	
  plaTorm	
  supports	
  IE10.	
  
•  Make	
  your	
  (x)html	
  page	
  and	
  reference	
  to	
  the	
  
file	
  in	
  script	
  block	
  
•  Make	
  your	
  code	
  and	
  use	
  JQuery	
  funcBons!	
  
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
//<![CDATA[
// When document is ready to be manipulated
jQuery(document).ready( pageReadyToBeManipulated );
function pageReadyToBeManipulated() {
// If link is clicked
jQuery("a").click( linkClick );
}
function linkClick(event) {
alert("Thanks for visiting!");
// Prevent the default action
event.preventDefault();
}
//]]>
</script>
Some	
  Basic	
  Syntax	
  
•  JQuery	
  can	
  be	
  used	
  in	
  two	
  ways:	
  
– JQuery()
– Or	
  
– $()
•  $	
  is	
  an	
  alias	
  to	
  JQuery()!	
  $	
  more	
  commonly	
  
used	
  
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
//<![CDATA[
// When document is ready to be manipulated
$(document).ready( pageReadyToBeManipulated );
function pageReadyToBeManipulated() {
// If link is clicked
$("a").click( linkClick );
}
function linkClick(event) {
alert("Thanks for visiting!");
// Prevent the default action
event.preventDefault();
}
//]]>
</script>
// USING ANONYMOUS FUNCTIONS
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready( function() {
$("a").click(function(event){
alert("Thanks for visiting!");
event.preventDefault();
});
});
//]]>
</script>
// EVEN SHORTER SYNTAX, FORGET THE DOCUMENT PARAMETER
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
//<![CDATA[
$().ready(function(){
$("a").click(function(event){
alert("Thanks for visiting!");
event.preventDefault();
});
});
//]]>
</script>
Geers	
  in	
  the	
  TradiBonal	
  Way	
  
•  getElementsById
•  getElementsByTagName
•  getAttribute
JQuery	
  and	
  Selectors	
  
•  Select	
  all	
  h1	
  elements	
  
– $(“h1”)
•  Select	
  the	
  first	
  one	
  
– $(“h1”)[0]
•  Add	
  contents	
  
– $(“h1”)[0].innerHTML = “hello!”;
•  Lot	
  of	
  different	
  selectors	
  
– http://api.jquery.com/category/selectors/
CreaBng	
  Elements	
  in	
  TradiBonal	
  Way	
  
•  createElement
•  createTextNode
•  setAttribute
•  appendChild
•  removeChild
JQuery	
  Insert	
  
$().ready(function(){
$("a").click(function(event){
// Insert the new element after element with id here
$("<p>New Element</p>").insertAfter("#here");
event.preventDefault();
});
});
ManipulaBon	
  FuncBons	
  
•  .addClass()
•  .after()
•  .append()
•  .css()
•  …	
  
•  See: http://api.jquery.com/category/
manipulation/
Some	
  Effects:	
  Lot	
  of	
  Anim	
  FuncBons	
  
$('#clickme').click(function() {
$('#book').slideUp('slow', function() {
// Animation complete.
});
});
JQUERY	
  MOBILE	
  
JQuery	
  Mobile	
  
•  UI	
  for	
  all	
  popular	
  mobile	
  device	
  plaTorms	
  
– hp://jquerymobile.com/	
  
•  Built	
  on	
  top	
  of	
  JQuery	
  
•  Themes	
  can	
  be	
  changed	
  
•  See	
  demo:	
  
– hp://view.jquerymobile.com/1.3.2/dist/demos/	
  
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My first jQuery Mobile code</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css">
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div data-role="page" data-theme="a">
<div data-role="header">
<h1>jQuery Mobile</h1>
</div>
<div data-role="content">
<ul data-role="listview" data-inset="true" data-dividertheme="b">
<li data-role="list-divider">Options</li>
<li><a href="option1.html">Option 1</a></li>
<li><a href="option2.html">Option 2</a></li>
<li><a href="option3.html">Option 3</a></li>
<li><a href="option4.html">Option 4</a></li>
</ul>
</div>
<div data-role="footer">
<h4>&copy; 2013</h4>
</div>
</div>
</body>
</html>

More Related Content

What's hot (20)

PPTX
Introduction to jquery mobile with Phonegap
Rakesh Jha
 
PDF
HTML5 and Mobile
doodoofish
 
PPTX
jQuery Mobile
mowd8574
 
PPTX
jQuery Mobile UI
LearningTech
 
PPTX
Introduction to the jQuery mobile framework
Rishabh Rao
 
PDF
What is jQuery?
tina3reese7
 
PDF
jQueryMobile Jump Start
Haim Michael
 
PPTX
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
crokitta
 
PDF
ui-router and $state
garbles
 
PPTX
ChocolateChip-UI
GeorgeIshak
 
PDF
Ui router
Marilyn Waldman
 
KEY
jQuery('#knowledge').appendTo('#you');
mikehostetler
 
PPTX
Jquery mobile
Eric Turcotte
 
PPTX
Twitter bootstrap
dennisdc
 
PDF
Architecture, Auth, and Routing with uiRouter
Christopher Caplinger
 
PDF
Spout - Building a RESTful web app with Angular.js and BEAR.Sunday
Richard McIntyre
 
PDF
JavaScript Libraries (Kings of Code)
jeresig
 
PPTX
Building jQuery Mobile Web Apps
Operation Mobile
 
PDF
DrupalGap. How to create native application for mobile devices based on Drupa...
DrupalCampDN
 
TXT
test
edesignagency
 
Introduction to jquery mobile with Phonegap
Rakesh Jha
 
HTML5 and Mobile
doodoofish
 
jQuery Mobile
mowd8574
 
jQuery Mobile UI
LearningTech
 
Introduction to the jQuery mobile framework
Rishabh Rao
 
What is jQuery?
tina3reese7
 
jQueryMobile Jump Start
Haim Michael
 
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
crokitta
 
ui-router and $state
garbles
 
ChocolateChip-UI
GeorgeIshak
 
Ui router
Marilyn Waldman
 
jQuery('#knowledge').appendTo('#you');
mikehostetler
 
Jquery mobile
Eric Turcotte
 
Twitter bootstrap
dennisdc
 
Architecture, Auth, and Routing with uiRouter
Christopher Caplinger
 
Spout - Building a RESTful web app with Angular.js and BEAR.Sunday
Richard McIntyre
 
JavaScript Libraries (Kings of Code)
jeresig
 
Building jQuery Mobile Web Apps
Operation Mobile
 
DrupalGap. How to create native application for mobile devices based on Drupa...
DrupalCampDN
 

Viewers also liked (7)

PDF
Android Overview
Jussi Pohjolainen
 
PDF
Installing And Configuring Java Me Tools
Jussi Pohjolainen
 
PDF
libGDX: Simple Frame Animation
Jussi Pohjolainen
 
PDF
Responsive Web Site Design
Jussi Pohjolainen
 
PDF
Android Multimedia Support
Jussi Pohjolainen
 
PDF
About Http Connection
Jussi Pohjolainen
 
PDF
Android UI Development
Jussi Pohjolainen
 
Android Overview
Jussi Pohjolainen
 
Installing And Configuring Java Me Tools
Jussi Pohjolainen
 
libGDX: Simple Frame Animation
Jussi Pohjolainen
 
Responsive Web Site Design
Jussi Pohjolainen
 
Android Multimedia Support
Jussi Pohjolainen
 
About Http Connection
Jussi Pohjolainen
 
Android UI Development
Jussi Pohjolainen
 
Ad

Similar to Quick Intro to JQuery and JQuery Mobile (20)

PDF
06 jQuery #burningkeyboards
Denis Ristic
 
PDF
jQuery
Ivano Malavolta
 
PPTX
jQuery PPT
Dominic Arrojado
 
PPTX
Upstate CSCI 450 jQuery
DanWooster1
 
PPT
J query b_dotnet_ug_meet_12_may_2012
ghnash
 
PDF
jQuery (BostonPHP)
jeresig
 
PPTX
Jquery optimization-tips
anubavam-techkt
 
PPTX
How to increase Performance of Web Application using JQuery
kolkatageeks
 
KEY
Introduction to jQuery - Barcamp London 9
Jack Franklin
 
PPTX
jQuery basics
Kamal S
 
PPTX
jQuery
Jay Poojara
 
PDF
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
Sean Burgess
 
PPT
JavaScript Libraries
Daminda Herath
 
PDF
jQuery (DrupalCamp Toronto)
jeresig
 
PDF
jQuery for beginners
Siva Arunachalam
 
PPTX
How I Learned to Stop Worrying and Love jQuery (Jan 2013)
David Giard
 
PPT
jQuery Tips Tricks Trivia
Cognizant
 
PDF
Introducing jQuery
Wildan Maulana
 
PDF
Introduction to jQuery (Ajax Exp 2007)
jeresig
 
06 jQuery #burningkeyboards
Denis Ristic
 
jQuery PPT
Dominic Arrojado
 
Upstate CSCI 450 jQuery
DanWooster1
 
J query b_dotnet_ug_meet_12_may_2012
ghnash
 
jQuery (BostonPHP)
jeresig
 
Jquery optimization-tips
anubavam-techkt
 
How to increase Performance of Web Application using JQuery
kolkatageeks
 
Introduction to jQuery - Barcamp London 9
Jack Franklin
 
jQuery basics
Kamal S
 
jQuery
Jay Poojara
 
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
Sean Burgess
 
JavaScript Libraries
Daminda Herath
 
jQuery (DrupalCamp Toronto)
jeresig
 
jQuery for beginners
Siva Arunachalam
 
How I Learned to Stop Worrying and Love jQuery (Jan 2013)
David Giard
 
jQuery Tips Tricks Trivia
Cognizant
 
Introducing jQuery
Wildan Maulana
 
Introduction to jQuery (Ajax Exp 2007)
jeresig
 
Ad

More from Jussi Pohjolainen (20)

PDF
Moved to Speakerdeck
Jussi Pohjolainen
 
PDF
Java Web Services
Jussi Pohjolainen
 
PDF
Box2D and libGDX
Jussi Pohjolainen
 
PDF
libGDX: Screens, Fonts and Preferences
Jussi Pohjolainen
 
PDF
libGDX: Tiled Maps
Jussi Pohjolainen
 
PDF
libGDX: User Input and Frame by Frame Animation
Jussi Pohjolainen
 
PDF
Intro to Building Android Games using libGDX
Jussi Pohjolainen
 
PDF
Advanced JavaScript Development
Jussi Pohjolainen
 
PDF
Introduction to JavaScript
Jussi Pohjolainen
 
PDF
Introduction to AngularJS
Jussi Pohjolainen
 
PDF
libGDX: Scene2D
Jussi Pohjolainen
 
PDF
libGDX: Simple Frame Animation
Jussi Pohjolainen
 
PDF
libGDX: User Input
Jussi Pohjolainen
 
PDF
Implementing a Simple Game using libGDX
Jussi Pohjolainen
 
PDF
Building Android games using LibGDX
Jussi Pohjolainen
 
PDF
Android Threading
Jussi Pohjolainen
 
PDF
Creating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Jussi Pohjolainen
 
PDF
Creating Games for Asha - platform
Jussi Pohjolainen
 
PDF
Intro to Asha UI
Jussi Pohjolainen
 
PDF
Intro to Java ME and Asha Platform
Jussi Pohjolainen
 
Moved to Speakerdeck
Jussi Pohjolainen
 
Java Web Services
Jussi Pohjolainen
 
Box2D and libGDX
Jussi Pohjolainen
 
libGDX: Screens, Fonts and Preferences
Jussi Pohjolainen
 
libGDX: Tiled Maps
Jussi Pohjolainen
 
libGDX: User Input and Frame by Frame Animation
Jussi Pohjolainen
 
Intro to Building Android Games using libGDX
Jussi Pohjolainen
 
Advanced JavaScript Development
Jussi Pohjolainen
 
Introduction to JavaScript
Jussi Pohjolainen
 
Introduction to AngularJS
Jussi Pohjolainen
 
libGDX: Scene2D
Jussi Pohjolainen
 
libGDX: Simple Frame Animation
Jussi Pohjolainen
 
libGDX: User Input
Jussi Pohjolainen
 
Implementing a Simple Game using libGDX
Jussi Pohjolainen
 
Building Android games using LibGDX
Jussi Pohjolainen
 
Android Threading
Jussi Pohjolainen
 
Creating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Jussi Pohjolainen
 
Creating Games for Asha - platform
Jussi Pohjolainen
 
Intro to Asha UI
Jussi Pohjolainen
 
Intro to Java ME and Asha Platform
Jussi Pohjolainen
 

Recently uploaded (20)

PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 

Quick Intro to JQuery and JQuery Mobile

  • 1. JQuery  +  JQuery  Mobile   Jussi  Pohjolainen   Tampere  University  of  Applied  Sciences  
  • 2. Overview   •  JQuery   –  Most  popular  JavaScript  library  to  simplify  client-­‐side  scripBng   –  DOM  Handling,  animaBons,  events,  AJAX   –  Hides  browser  differences!   •  JQuery  UI   –  Desktop  widgets,  such  as  date  picker,  dialog,  progress  bar,  tabs…   –  Built  on  top  of  JQuery   •  JQuery  Mobile   –  Mobile  app  framework,  mainly  touch  UI  widgets   –  Support  for  all  mobile  operaBng  systems   –  Built  on  top  of  JQuery   •  Possible  to  mix:  JQuery  (dom  handling)  +  JQuery  Mobile  (UI).  
  • 3. PhoneGap?   •  PhoneGap  (Adobe)  framework  allows  to  build  hybrid   apps  for  mobile  plaTorms   •  Hybrid  apps?   –  Web  apps  (HTML5+JS)  that  are  wrapped  inside  of  naBve   WebView  widget   •  Benefits   –  Can  be  sold  in  app  stores   –  Can  access  naBve  APIs   •  One  possible  stack  for  building  cross  plaTorm  apps:   –  JQuery  for  DOM  and  AJAX  Handling   –  JQuery  Mobile  for  User  Interface   –  PhoneGap  for  wrapping  the  app  as  naBve  
  • 5. Quick  Start   •  Download  JQuery  file  (hp://jquery.com/)   – 1.x   – 2.x   •  Smaller  and  faster,  but  does  not  support  ie6,  7  or  8.   •  Windows  Phone  8  plaTorm  supports  IE10.   •  Make  your  (x)html  page  and  reference  to  the   file  in  script  block   •  Make  your  code  and  use  JQuery  funcBons!  
  • 6. <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> //<![CDATA[ // When document is ready to be manipulated jQuery(document).ready( pageReadyToBeManipulated ); function pageReadyToBeManipulated() { // If link is clicked jQuery("a").click( linkClick ); } function linkClick(event) { alert("Thanks for visiting!"); // Prevent the default action event.preventDefault(); } //]]> </script>
  • 7. Some  Basic  Syntax   •  JQuery  can  be  used  in  two  ways:   – JQuery() – Or   – $() •  $  is  an  alias  to  JQuery()!  $  more  commonly   used  
  • 8. <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> //<![CDATA[ // When document is ready to be manipulated $(document).ready( pageReadyToBeManipulated ); function pageReadyToBeManipulated() { // If link is clicked $("a").click( linkClick ); } function linkClick(event) { alert("Thanks for visiting!"); // Prevent the default action event.preventDefault(); } //]]> </script>
  • 9. // USING ANONYMOUS FUNCTIONS <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> //<![CDATA[ $(document).ready( function() { $("a").click(function(event){ alert("Thanks for visiting!"); event.preventDefault(); }); }); //]]> </script>
  • 10. // EVEN SHORTER SYNTAX, FORGET THE DOCUMENT PARAMETER <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> //<![CDATA[ $().ready(function(){ $("a").click(function(event){ alert("Thanks for visiting!"); event.preventDefault(); }); }); //]]> </script>
  • 11. Geers  in  the  TradiBonal  Way   •  getElementsById •  getElementsByTagName •  getAttribute
  • 12. JQuery  and  Selectors   •  Select  all  h1  elements   – $(“h1”) •  Select  the  first  one   – $(“h1”)[0] •  Add  contents   – $(“h1”)[0].innerHTML = “hello!”; •  Lot  of  different  selectors   – http://api.jquery.com/category/selectors/
  • 13. CreaBng  Elements  in  TradiBonal  Way   •  createElement •  createTextNode •  setAttribute •  appendChild •  removeChild
  • 14. JQuery  Insert   $().ready(function(){ $("a").click(function(event){ // Insert the new element after element with id here $("<p>New Element</p>").insertAfter("#here"); event.preventDefault(); }); });
  • 15. ManipulaBon  FuncBons   •  .addClass() •  .after() •  .append() •  .css() •  …   •  See: http://api.jquery.com/category/ manipulation/
  • 16. Some  Effects:  Lot  of  Anim  FuncBons   $('#clickme').click(function() { $('#book').slideUp('slow', function() { // Animation complete. }); });
  • 18. JQuery  Mobile   •  UI  for  all  popular  mobile  device  plaTorms   – hp://jquerymobile.com/   •  Built  on  top  of  JQuery   •  Themes  can  be  changed   •  See  demo:   – hp://view.jquerymobile.com/1.3.2/dist/demos/  
  • 19. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>My first jQuery Mobile code</title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css"> <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <div data-role="page" data-theme="a"> <div data-role="header"> <h1>jQuery Mobile</h1> </div> <div data-role="content"> <ul data-role="listview" data-inset="true" data-dividertheme="b"> <li data-role="list-divider">Options</li> <li><a href="option1.html">Option 1</a></li> <li><a href="option2.html">Option 2</a></li> <li><a href="option3.html">Option 3</a></li> <li><a href="option4.html">Option 4</a></li> </ul> </div> <div data-role="footer"> <h4>&copy; 2013</h4> </div> </div> </body> </html>