<asp:DropDownList ID="cityName" runat="server"> </asp:DropDownList>
var city = $("#city").val(); if (city.toString() != "") { var citySelect = $('#cityName'); citySelect.append($('<option></option>').val('0').html('-Select City-')); for (i = 0; i < City.response_list.length; i++) { citySelect.append($('<option></option>').val(City.response_list[i].id_city + " - " + City.response_list[i].label).html(City.response_list[i].id_city + " - " + City.response_list[i].label)); } }
dropdownlist1.selectedvalue
dropdownlist1.selectedtext
string Svalu = dropdownlist1.SelectedItem.Tostring();
dropdownList.SelectedText
dropdownlist1.SelectedValue
dropdownlist.selecteditem.text
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)