Wednesday, February 8, 2012

jQuery Mobile: CheckBox

jQuery Mobile: CheckBox
<!doctype html>
<html>

<head>
<meta charset="utf-8"></meta>
<meta name = "viewport" content = "width = device-width, height = device-height" />
<title>Mobile-Web-App</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>

</head>
<body>
<div data-role="page" id="home">
<div data-role="header">
<h1>jQuery Mobile: Check Box</h1>
</div>

<div data-role="content">

<div data-role="fieldcontain">
<fieldset data-role="controlgroup">
<legend>AM/PM Vertical:</legend>
<label for="amv">AM</label>
<input type="checkbox" name="amv" id="amv" class="custom" />
<label for="pmv">PM</label>
<input type="checkbox" name="pmv" id="pmv" class="custom" />

</fieldset>
</div>

<div data-role="fieldcontain">
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>AM/PM Horizontal:</legend>
<label for="amh">AM</label>
<input type="checkbox" name="amh" id="amh" class="custom" />
<label for="pmh">PM</label>
<input type="checkbox" name="pmh" id="pmh" class="custom" />
</fieldset>
</div>

</div>

<div data-role="footer">
<h4><a href="http://mobile-web-app.blogspot.com/">http://mobile-web-app.blogspot.com/</a></h4>
</div>

</div>

</body>
</html>

No comments:

Post a Comment