Filter checkboxes
Description
The following code shows how to filter checkboxes.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.10.1.js'></script>
<script type='text/javascript'
src="http://code.jquery.com/mobile/1.4.0-rc.1/jquery.mobile-1.4.0-rc.1.min.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.4.0-rc.1/jquery.mobile-1.4.0-rc.1.min.css">
</head><!--from w w w .j a v a 2s . co m-->
<body>
<div data-role="content">
<fieldset data-role="controlgroup" id="myGroup" data-filter="true"
data-icon="false">
<input type="checkbox" name="itemIds" id="228" />
<label for="228">Orange </label>
<input type="checkbox" name="itemIds" id="70" />
<label for="70"> Red </label>
<input type="checkbox" name="itemIds" id="71" />
<label for="71"> Blue </label>
<input type="checkbox" name="itemIds" id="72" />
<label for="72"> Purple </label>
</fieldset>
</div>
</body>
</html>