界面如图: 上面是ComboBox,下边是CheckboxGroup 复选框组,我想实现:当有一个复选框被选中,就从新加载ComboBox的值??请大侠赐教了??
解决方案 »
- 求助 JS月份相减
- 帮忙看看这个问题?
- 高分求能够让电脑假死的js或其他类型的代码
- getElementById获取value时,提示null
- 什么是JS的对象,什么是类,我有点昏
- 调试了一天了,,这个在IE下的问题还没解决
- javascript设置iframe的问题,特别需要帮助,请高手一定帮忙,谢谢了!!!!~~~~~
- ie5下激活窗口的方法?
- 大家写javacript用什么编辑器,指点一二!!!!
- 问题描述:在一个页面,在页面评论位置时,跳转一个新div(不是新页面),关闭新的div回到原来的a位置,目前我的困惑是:不知道采取什么方案!!!新的的div要求
- 怎样用正则表达式将花括号中的字符串取出
- 求正则表达式
checkGroup可以用items.each(),取checked=true的项的值。
comboBox.getStore().loadData([{item:'你的值'},...])
这是只是思路,仅供参考。
id:'cityCheckGroup',
fieldLabel: '选择地市',
columns: 5,
id:'cityCheckGroup',
name:'cityCheckGroup',
disabled:isDisable,
columnWidth:40,
items: [
{boxLabel: '全省', inputValue:'全省'},
{boxLabel: '南京', inputValue:'南京'},
{boxLabel: '苏州', inputValue:'苏州'},
{boxLabel: '镇江', inputValue:'镇江'},
{boxLabel: '无锡', inputValue:'无锡'},
{boxLabel: '南通', inputValue:'南通'},
{boxLabel: '淮安', inputValue:'淮安'},
{boxLabel: '盐城', inputValue:'盐城'},
{boxLabel: '常州', inputValue:'常州'},
{boxLabel: '扬州', inputValue:'扬州'},
{boxLabel: '连云港',inputValue:'连云港'},
{boxLabel: '徐州', inputValue:'徐州'},
{boxLabel: '宿迁', inputValue:'宿迁'},
{boxLabel: '泰州', inputValue:'泰州'}
]
});
这个是我定义的一个CheckboxGroup,每选中一个城市下边的comboxBox就重新加载值,我想知道用CheckboxGroup的什么事件触发呀,在网上找了好多,没找到!请
WSJ741
(云满楼)
给点提示呗??
var arrCity=[];
在选择事件中写以下代码:cityCheckGroup.items.each(i){
arrCity.push({city:i.inputValue});
}
cmbCity.getStore().loadData(arrCity);----
应该是这样写,我没测试,凭记忆写的。