I’m displaying a list of items that user can select from.(multiple selection). My requirements are 1) if an item is selected, the whole row should be highlighted, not just the checkbox icon
eg)http://jquerymobile.com/demos/1.0a4.1/docs/forms/forms-checkboxes.html (Vertically grouped checkboxes)
2) checkbox icon shouldn’t be displayed
<div id="content" data-role="content">
<div id="list-checkboxes" data-role="fieldcontain">
<fieldset data-role="controlgroup" data-type="vertical"data-theme="m">
<label for="chb_1" data-theme="m" >Car</label>
<input type="checkbox" name="chb_1" id="chb_1" class="custom" />
<label for="chb_2">Van</label>
<input type="checkbox" name="chb_2" id="chb_2" class="custom" />
</fieldset>
</div><!-- /content -->
You can override the css as follows to achieve this:
The idea is to remove the floating of each of the items and tweak the border styles.
Full demo here – http://jsfiddle.net/c59FN/