Hi,
I have dropdown,
<asp:dropdownlist id="Lst_Town" runat="server" onchange="fillCountry(this
.selectedI
ndex);" ></asp:dropdownlist>
The dropdown is assigned as follwoing,
DataTextField of dropdown is = "Name"
DataValueField of dropdown is = "Name_Id"
In the dropdown i call a javascript function fillCountry()
function fillCountry(selInd)
{
// here i want to do something like this...
alert(Lst_Town.Text);
alert(Lst_Town.Value);
}
On the whole, when the user select the dropdown, i want to alert, to show the selected value and the selected text.
Urgent,
Thanks.
Start Free Trial