Please Refer this code it may be help :-
function LoadSupplier() {
var ddlSupperlier = document.getElementById('<%= ddlSupplier.ClientID %>');
ddlSupperlier.append(new Option("Select Supplier", 0));
for (i = 0; i < SupplierDetails.length; i++) {
ddlSupperlier.append(new Option(SupplierDetails[i].PartyName, SupplierDetails[i].PartyId));
}
}
function loadPO() {
var ddlPO = document.getElementById('<%= ddlPO.ClientID %>');
var Options = document.createElement("option");
ddlPO.length = 0;
Options.text = "- SELECT -";
Options.value = "-1";
ddlPO.options.add(Options);
for (var i = 0; i < SupplierPOs.length; i++) {
if (SupplierPOs[i].PartyId == index) {
var Option = document.createElement("option");
Option.text = SupplierPOs[i].PO;
Option.value = SupplierPOs[i].POId;
ddlPO.options.add(Option);
}
}
}
protected void btnSave_Click(object sender, EventArgs e)
{
string str = ddlSupplier.selectedValue;
}