您如何使“城市”列中的下拉值根据选择的州进行过滤,以便仅显示该州内的城市?
function cityFilter(element) {
element.kendoDropDownList({
dataSource: {
transport: {
read: "http://localhost:8888/City.php",
dataType: "json"
},
schema: {
data: "data"
}
},
dataTextField:"City",
dataValueField:"City",
optionLabel: "--Select Value--"
});
}
function stateFilter(element) {
element.kendoDropDownList({
dataSource: {
transport: {
read: "http://localhost:8888/State.php",
dataType: "json"
},
schema: {
data: "data"
}
},
dataTextField:"State_Long",
dataValueField:"State_Long",
optionLabel: "--Select Value--"
});
}