I want select combobox named Bureau when the combobox named Station selected, but An error occurred, it is show in attachs.
btw: There is double request when the dialog opened. it is show in attachs.
<form id="frmRestriction" method="post" action="/restrictions/index.asp?m=Restriction&a=Append" onSubmit="return false;">
<input type="hidden" name="Id" value="" />
<div style="width:100%;padding:3px;text-align:left;margin-left:auto;margin-right:auto;">
<div style="float:left;margin:4px">
<nobr><label>路局</label> <select class="easyui-combobox" name="Bureau" style="width:128px"></select></nobr>
</div>
<div style="float:left;margin:4px">
<nobr><label>到站</label> <select class="easyui-combobox" name="Station" style="width:111px"></select></nobr>
</div><div style="clear:both"></div>
<div style="float:left;margin:4px">
<nobr><label>停装日期</label> <input class="easyui-datebox" name="StartDate" editable="false" style="width:88px" value="2015-05-09" /> <input type="checkbox" name="HasFinishDate" value="1" style="vertical-align:-2px" onclick="$('[name=FinishDate]').prop('disabled',!this.checked)" /><label>恢复日期</label> <input class="easyui-datebox" name="FinishDate" editable="false" style="width:88px" value="" /></nobr>
</div><div style="clear:both"></div>
<div style="float:left;margin:4px">
<nobr><label>备注</label> <input class="easyui-textbox" name="Notes" value="" data-options="multiline:true,prompt:'最多输入100个字'" style="width:277px;height:88px" /></nobr>
</div>
</div>
</form>
<script type="text/javascript">
<!--
$(function(){
$('[name=FinishDate]').datebox({
onSelect:function(){
$('[name=HasFinishDate]').prop('checked', true);
}
});
$('[name=Bureau]').combobox({
editable:false,
valueField:'Id',
textField:'Name',
url:'/restrictions/index.asp?m=Restriction&a=Bureaus'
});
$('[name=Station]').combobox({
valueField:'Id',
textField:'Name',
mode:'remote',
url:'/restrictions/index.asp?m=Restriction&a=Stations',
prompt:'请输入拼音码或电报码',
delay:500,
onSelect:function(record){
// $('[name=Bureau]').combobox('select', record.Bureau);
}
});
});
//-->
</script>