<div id="lineType" type="selectTree" class="ui-select">
GetCombobox("lineType", "0", function (r, d) {
if (r) {
$("#lineType").ComboBox({
description: "==请选择==",
id: "ItemValue",
text: "ItemName",
data: d.resultdata,
height: "250px"
});
}
//$("#lineType").ComboBox({
其他参数...
//selectedIndex: parOBJ.lineType
//});
$("#lineType").ComboBoxSetValue( parOBJ.lineType); //默认选中的值
});
$("#ProvinceId")
.ComboBox({
//url: baseUrl + "/api/Base/GetArea",
//param: { parentId: "0" },
id: "AreaId",
text: "AreaName",
data: JSON.parse(data),
description: "选择省",
height: "170px",
//allowSearch: true
})
.bind("change",
function () {
var value = $(this).attr('data-value');
$("#CityId .ui-select-text").text("选择市");
$("#CountyId .ui-select-text").text("选择县/区");
$("#StreetId .ui-select-text").text("选择街道"
力软件框架下 combox下拉点击以及联动和默认选中的值
本文详细介绍了在力软件框架下,如何处理ComboBox组件的点击事件,以及如何实现下拉选项的联动效果。同时,探讨了如何设置和获取ComboBox的默认选中值,为前端开发者提供了一套完整的解决方案。
摘要由CSDN通过智能技术生成