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.
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.