获取表单中checkboxgroup所有选中值

 var fxpgForm = tabpanel.getItem("fxpgTabId");
    try{
var tableArr = [];
var groups = fxpgForm.findByType('checkboxgroup');
var chks = null;
var gLength = 0;
gLength = groups.length;
       for (var i = 0; i < gLength; i++) {
chks = groups[i].items;
chks.each(function(f){
               if(f.checked){
                tableArr.push(f.inputValue);
               }
           }, this)
       fxpgdata = tableArr.toString();
}catch (ex){
alert(ex);
}
posted @ 2011-09-19 20:58  易木  阅读(1887)  评论(0编辑  收藏  举报