This is what I have right now: http://jsfiddle.net/w6PAC/3/
I want the select button to the right of the count, without it affecting the vertical size and alignment of the list item.
I have tried:
- creating CSS based on the
.ul-li-countclass but only managed to break the jQM enhancement. - creating the buttons separately outside the listview but I was unable to align them vertically.
- playing about with fieldsets, data-roles, divs, etc with no success.
AFAIK it is not possible to invoke a select programmatically otherwise I would add a plain button to the listview.
Any help greatly appreciated, including suggestions for alternative document layouts.
If I understand correctly then you can use some pretty simple CSS to alter jQuery Mobile’s default layout:
Note that I am using the
.custom_listclass to target the desired<ul>element so for this solution to work properly you must remove.custom_listfrom the CSS declarations above or add the.custom_listclass to the<ul>element you want to customize.Here is a jsfiddle of the above solution: http://jsfiddle.net/jasper/w6PAC/4/