Ext Js Get Selected ComboBox Value

Small code snippet illustrating getting the selected value from an Ext Js ComboBox.

This example has been tested with Ext Js 4

var combo = Ext.create('Ext.form.field.ComboBox', {
  ...
  listeners: {
   'select':function(selected){ alert(selected.value); }
  }
  ...
});

More information on ComboBox over at Sencha Web Site

Leave a Reply

Your Name (required)
 
Mail (will not be published) (required)
 
Website
 
Comment