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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar