Hello,
I am trying to get the combobox selected item and value in the javascript. Does the accessing of combobox in javascript change based on the version you use? I am using Telerik 2011.3.1305.35.
I have a javascript file and in that i have a function which will accept client id of the radcombobox as a parameter and now how do i get the selected index, selected item and value of that combobox? I have tried it in couple of ways but no luck.
I am calling this GetAddress function in the user control page load. I am adding the attributes for another button click like below
Appreciate the help
Thanks
I am trying to get the combobox selected item and value in the javascript. Does the accessing of combobox in javascript change based on the version you use? I am using Telerik 2011.3.1305.35.
I have a javascript file and in that i have a function which will accept client id of the radcombobox as a parameter and now how do i get the selected index, selected item and value of that combobox? I have tried it in couple of ways but no luck.
function
GetAddress(rcbCity) {
// rcbCity is the clientID of the RadComboBox with ID rcbCity .
how
do
i get the selected index,item and value here?
}
I am calling this GetAddress function in the user control page load. I am adding the attributes for another button click like below
if (!IsPostBack)
{
btnMap.Attributes.Add(
"onClick"
,
"GeocodeAddress('"
+
this
.rcbCity.ClientID +
"'); return false;"
);
}
Appreciate the help
Thanks