下拉框三

HTML:

<div class="lr-layout-tool-item" style="margin-top:4px">用工类型</div>
<div class="lr-layout-tool-item">
<div id="list_three" class="form-control" isvalid="yes" style="width:150px" checkexpession="NotNull"></div>
</div>

 

js:

注:返回值字段名称必须与value和text一样

$('#list_two').lrselect({
url: top.$.rootUrl + '/LR_CodeDemo/HZL_Try/List_Two',

//data:{"value1":"text1","value2":"text2"},
value: 'value',
text: 'text',
title: 'text',
maxHeight: 200,
allowSearch: true,   //是否允许搜索
select: function (item) {
}
});

 

取值:

var list_two = $("#list_two").lrselectGet();

posted @ 2022-08-01 19:11  微渡  阅读(54)  评论(0)    收藏  举报