I am facing an issue with a dropdown list on my form that has Integer Values set to display text. The problem arises when I run the code to show the value and associated text, as the text is being displayed as the value itself. Is there any workaround available for this?
In the function below, 'OnddlChanged(dropdown)',
if( dropdown != null)
{
var selindex = dropdown.selectedIndex;
var selvalue = dropdown.options[selindex].value;
var seltext = dropdown.options[selindex].text;
document.getElementById('<%=Hidsel Key.ClientID %>').value = selvalue;
alert(document.getElementById('<%=Hidsel Key.ClientID %>').value);
alert(seltext);
}
}