jQuery MiniUI 开发教程 表单控件 ComboBox:联动选择(十)
ComboBox:联动选择
参考示例:ComboBox:联动选择
一:创建两个ComboBox
<span>部门</span>
<inputid="deptCombo"class="mini-combobox"style="width:150px;"textField="name"valueField="id"
onvaluechanged="onDeptChanged"url="../data/DataService.aspx?method=GetDepartments"
showNullItem="true"/>
<span>职位</span>
<inputid="positionCombo"class="mini-combobox"style="width:150px;"textField="name"valueField="id"/>
二:valuechanged加载第二个ComboBox
functiononDeptChanged(e){
varid=deptCombo.getValue();
positionCombo.setValue("");
varurl="../data/DataService.aspx?method=GetPositionsByDepartmenId&id="+id
positionCombo.setUrl(url);
}
相关推荐
89427412 2020-02-13
0tx 2014-01-19
xx0cw 2019-10-27
小小大人物 2017-03-01
88324358 2016-03-18
海欣海夜 2015-03-20
黎豆子 2014-01-19
崔博伦一路有你 2012-10-15
EdwardSiCong 2012-03-31
huzai 2012-02-23
shanhuijava 2011-07-31
lsxxx0 2017-08-06
83483768 2019-05-04
melissahexiu 2017-03-08
醉殇姒若梦遗年 2016-12-19
87407607 2013-12-24
88487901 2013-11-30
CleanData 2018-01-24