4 Jun 2010 9:07 AM #1
Getting selected index or value in a combo box
I need to get the selected index and/or value after the onchange event in a combo box. Here is what I have tried:
var el = Ext.get('mycombobox');
I was expecting the alert to return 0 or 1, based on what I selected. But the alert returned 'undefined'.
4 Jun 2010 9:23 AM #2
4 Jun 2010 9:29 AM #3
Sorry, I didn't mean to. There are a couple of threads I posted that didn't seem to show up in the forum. Maybe it just takes a while sometimes.
By kiran.hn in forum Ext 2.x: Help & DiscussionReplies: 8Last Post: 3 Jun 2010, 2:11 AM
By hubidubi in forum Ext 3.x: Help & DiscussionReplies: 5Last Post: 26 Mar 2010, 4:31 AM
By vaucer in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 14 Feb 2010, 8:12 AM
By bobschaff in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 20 Feb 2008, 5:56 PM