1. #1
    Ext User
    Join Date
    Apr 2010
    Posts
    1
    Vote Rating
    0
    summer00 is on a distinguished road

      0  

    Default Ext.form.ComboBox javascript equivalent of select option text?

    Ext.form.ComboBox javascript equivalent of select option text?


    Hi there, extjs ComboBox transform a html select input into hidden field, selected option value will be stored into this hidden field, which is alright, my problem is i need to get selected option text and i have no idea how to get it.

    This is what i'm trying to do , upon extjs comobox selection, i add an onclick listener to a javascript function which goes like this


    function onCountrySelect(){
    var selectedCountryText = document.forms[0].country.options[document.forms[0].country.selectedIndex].text;
    }

    since extjs has transformed the select input to hidden field, the property country.options is not valid anymore.

    any idea? thanks !

  2. #2
    Ext User
    Join Date
    Apr 2010
    Posts
    4
    Vote Rating
    0
    Lazy8s is on a distinguished road

      0  

    Default


    This is what I was trying to say in my previous post where I was unable to get the name/value pair from the ComboBox. This is a really annoying feature of ComboBoxes. Any help on this would be great.

Thread Participants: 1

Tags for this Thread

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