jsp怎么实现选择部门了再去选择部门下的人员呢 $('#ndeptid').change(function(){修改deptid值};); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $('#ndeptid').change(function(){修改deptid值}); 手误多了个分号 这个就应该是一个联动效果。数据库设计好了用Ajax请求去取值就行了 $("#xx").combobox({onChange: function (n,o) {alert("xxxxxxx");}}); 解决了,不好意思。忘记上来结了,我是在选择部门的时候加了个触发器去实现的function getManager(managervalue,candisable){ if($("#ndeptid").combobox("getValue")==""){ $('#nmanagerid').clear(); return false; } if(candisable=="0"){ $("#nmanagerid").combobox({ disabled: false }); } $('#nmanagerid').combobox({ url : '${ctx}/sys/user/tree?usertype=5&orgid='+$("#ndeptid").combobox("getValue"), valueField: 'id', textField: 'text', editable: false, panelHeight: 'auto', lines : true, value : managervalue }); }<td><select name="ndeptid" id="ndeptid" class="easyui-combobox" style="width:150px" required="true" data-options="onSelect: function(rec){getManager('','0');}"/></td> 关于字符串的比较问题 JSP中include file的问题,求高手指点 有点没搞明白type的用法,解释下下面的对错 IE下面刷新页面导致的问题--兼容性问题 用window.open()打开一个子窗体,然后焦点聚焦到子窗体上,怎样在ie8,firefox上兼容? 数据查询与输出中遇到的问题~~~急哦 可以用JS来防止页面卡住页面吗? 正则表达式问题:根据已知的表达式生成任意一匹配的字符串.在线等待~~~ javascript的另类下拉菜单 当网页在主副(分辨率不同)显示器间切换时,如何自动调整网页大小 求帮助这个鼠标经过事件怎么写 求帮助啊!鼠标经过事件
onChange: function (n,o) {
alert("xxxxxxx");
}
});
function getManager(managervalue,candisable){
if($("#ndeptid").combobox("getValue")==""){
$('#nmanagerid').clear();
return false;
}
if(candisable=="0"){
$("#nmanagerid").combobox({ disabled: false });
}
$('#nmanagerid').combobox({
url : '${ctx}/sys/user/tree?usertype=5&orgid='+$("#ndeptid").combobox("getValue"),
valueField: 'id',
textField: 'text',
editable: false,
panelHeight: 'auto',
lines : true,
value : managervalue
});
}
<td><select name="ndeptid" id="ndeptid" class="easyui-combobox" style="width:150px" required="true" data-options="onSelect: function(rec){getManager('','0');}"/></td>