页面第一个格是下拉菜单,下拉菜单的值放在数组中~如下:
var aDeptType = [['0', '管理员', '1111'],['1', '业务调度','222']]
现在点击下拉列出两项:管理员、业务调度
当我选中业务调度时,对应的'222'在另一个格中显示请问高手们,这样如何实现????
在线等~~~~~~~~~~~~~~~

解决方案 »

  1.   

    combobox的select事件即可处理select : ( Ext.form.ComboBox combo, Ext.data.Record record, Number index ) 
    Fires when a list item is selected
    Fires when a list item is selected 
    Listeners will be called with the following arguments:
     
    combo : Ext.form.ComboBox 
    This combo box
    record : Ext.data.Record 
    The data record returned from the underlying store
    index : Number 
    The index of the selected item in the dropdown list