Drop down is bound dynamically with items.in a requirement the drop down is selected with particular value and being disable.
I have modified the attribute of dropdown as disable through JQuery as bellow
$("#cmbTeamList option[value='2']").attr("selected", "selected");
$('#cmbTeamList').attr("disabled", "disabled");
when tried to check the selected value of drop down in server side, the selected index is not working.
if (cmbTeamList.SelectedIndex != 0)
{
//logic is there
}
Please help me to overcome this problem.
When you disable a form element, it is not sent to server. You can store the value of the select into a hidden input instead.