1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    9
    Vote Rating
    0
    Shibani is on a distinguished road

      0  

    Default Getting selected index or value in a combo box

    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:

    Ext.onReady(function(){
    var el = Ext.get('mycombobox');
    el.on('change', function(){
    alert(el.selectedIndex);
    });
    });

    I was expecting the alert to return 0 or 1, based on what I selected. But the alert returned 'undefined'.

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    Please don't double post - post moderation is on.

  3. #3
    Sencha User
    Join Date
    Jun 2010
    Posts
    9
    Vote Rating
    0
    Shibani is on a distinguished road

      0  

    Default


    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.

Similar Threads

  1. how to get the number of options and selected index in combo box
    By kiran.hn in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 3 Jun 2010, 2:11 AM
  2. Combo box + selected value
    By hubidubi in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 26 Mar 2010, 4:31 AM
  3. [SOLVED] Select index combo box getForm().load
    By vaucer in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 14 Feb 2010, 8:12 AM
  4. Selected Index for a Combo Box
    By bobschaff in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 20 Feb 2008, 5:56 PM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi