<link href="assets/css/mobiscroll.custom-2.17.0.min.css" rel="stylesheet" type="text/css" />
<script src="assets/js/mobiscroll.custom-2.17.0.min.js" type="text/javascript"></script>
//html
<ol class="treelist-sex" >
<li>男</li>
<li>女</li>
</ol>
<select >西海区</option>
</optgroup>
</select>
//js
$('.treebutton-sex').click(function() {
$('.treelist-sex').mobiscroll('show');
return false;
});
$(".treelist-sex").mobiscroll().treelist({
theme: "mobiscroll",
display: 'bottom',
lang: "zh",
});
// js 地址选择控件(可显示多行)
$('#city-picker').click(function() {
$('#demo').mobiscroll('show');
return false;
});
$('#demo').mobiscroll().select({
theme: 'mobiscroll',
display: 'bottom',
label: 'City',
lang: "zh",
group: true,
groupLabel: 'Country',
//不允许右侧控制左侧
group: {
clustered: true
}
//选择表单展现的样式
inputClass:"all_width text-right clear_border"
// fixedWidth: [100, 170]
});