第一种自定义选项
<div class="item type-item">
<label for="">类型</label>
<input id="complain" name="complainType" type="hidden">
<input id="complainType" type="text">
<span class="iconfont icon-down"></span>
</div>
$(function () {
$("#complainType").select({
title: "诉求类型",
items: [
{
title: "咨询",
value: 1
},
{
title: "建议",
value: 2
},
{
title: "表扬",
value: 3
}
]
});
//值改变时触