RadComboBox how to get selectedItem
Dim sb As StringBuilder = New StringBuilder()
sb.Append("<script language=javascript>")
sb.Append(" function SetValueInBody() {")
sb.Append(" var _dllGetDynamicFieldKey = $find('" + _dllGetDynamicFieldKey.ClientID + "');")
sb.Append(" alert('Set Value: ' + _dllGetDynamicFieldKey.SelectedItem);")
sb.Append(" }")
sb.Append("</script>")
I am trying to get the selected item from radComboBox in jQuery with the intention of populating RadEditor against it. I am creating JS at the back, as above, where dllGetDynamicFieldKey is RadComboBox, the method described above is how I saw this to get the selected value, but it always returns undefined for me when a warning is issued. Any ideas right?