Page 121 - JqueryMobile_Manual
P. 121
121
Theming forms
tryjqmob_themes_forms.html
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<div data-role="page" id="pageone">
<div data-role="header">
<h1>Theming Forms</h1>
</div>
<div data-role="main" class="ui-content">
<form method="post" action="/action_page_post.php">
<div class="ui-fieldcontain">
<label for="name">Full Name:</label>
<input type="text" name="text" id="name" placeholder="Your name.." data-theme="b">
<br><br>
<label for="search">Looking for anything?</label>
<input type="search" name="search" id="search" placeholder="Search for content..">
<br><br>
<label for="colors">Choose Favorite Car:</label>
<select id="colors" name="colors" data-theme="b">
<option value="red">Volvo</option>
<option value="green">Audi</option>
<option value="blue">Toyota</option>
</select>
<br><br>
<label for="switch">Flip Toggle Switch:</label>
<input type="checkbox" data-role="flipswitch" name="switch" id="switch" data-theme="b">
<br><br>
<div data-role="controlgroup">
<legend>Choose Favorite Movies:</legend>
<label for="mov1">The Shawshank Redemption</label>
<input type="checkbox" name="mov1" id="mov1" data-theme="a">
<label for="mov2">The Godfather</label>
<input type="checkbox" name="mov2" id="mov2" data-theme="b">
</div>
</div>
</form>
</div>
</div>
</body>
</html>