how to add 2 radio button horizontal to listview in jquery mobile -
i want add 2 radio button horizontal in every row simplelistview
you use absolute positioning:
<ul data-role="listview" data-inset="true" class="mycustomul"> <li data-icon="false"> <a href="#"> accura </a> <div class="cust-btns"> <fieldset data-role="controlgroup" data-type="horizontal"> <input type="radio" name="radio-choice-h-1" id="radio-choice-h-1a" value="on" checked="checked" /> <label for="radio-choice-h-1a">one</label> <input type="radio" name="radio-choice-h-1" id="radio-choice-h-1b" value="off" /> <label for="radio-choice-h-1b">two</label> </fieldset> </div> </li> </ul> .mycustomul li > { padding-right: 139px !important; min-height: 40px; } .mycustomul .cust-btns { position: absolute; top: 0px; width: 139px; bottom: 0px; right: 0px; left: auto; }
Comments
Post a Comment