JavaScript
Run Code
Open in Fiddle
Ext.application({ name: 'Fiddle', launch: function() { var select = Ext.create('Ext.field.Select', { label: 'Choose one', options: [{ text: 'First Option', value: 'first' }, { text: 'Second Option', value: 'second' }, { text: 'Third Option', value: 'third' }, { text: 'Third Option', value: 'fourth' }, { text: 'Third Option', value: 'fifth' }], listeners: { change: function(iobListField, iobNewValue, iobOldValue) { Ext.Msg.alert('Value', 'Selected value:' + iobNewValue, Ext.emptyFn); console.log(iobNewValue); } } }); Ext.Viewport.add({ items: select }); } });