Posted on 2008-06-18
I have dropdown,
<asp:dropdownlist id="Lst_Town" runat="server" onchange="fillCountry(this.selectedIndex);" ></asp:dropdownlist>
The dropdown is assigned as follwoing,
DataTextField of dropdown is = "Name"
DataValueField of dropdown is = "Name_Id"
// here i want to do something like this...
On the whole, when the user select the dropdown, i want to alert, to show the selected value and the selected text.