Ext 取得combox中的值

    技术2022-05-19  23

    var combo = new Ext.form.ComboBox({ width: 127 , height: 50 , renderTo: ' div_com ' , mode: ' remote ' , triggerAction: ' all ' , id: ' filiale ' , name: ' filiale ' , value: ' 请选择.. ' , allowBlank: false , handleHeight: 5 , listWidth : 150 , maxHeight: 100 , readOnly: true , valueFiled: ' fid ' , displayField: ' title ' , store: new Ext.data.JsonStore({ url: ' ../../MyPages/Colligate/UploadFiliale.aspx?id= ' + encodeURI(v), root: ' data ' , fields: [ ' title ' , ' fid ' ] }), listeners:{ ' select ' : function (arg){ var d = arg.value; alert(Ext.get( " filiale " ).dom.value); alert(Ext.getCmp( " filiale " ).getValue()); } } });

    最新回复(0)