I have an usercontrol which should be disabled/enabled based on a dropdown selection.Please find below the piece of code.
if (name== 'A') {
$("#uc_panel").prop("disabled", "disabled");
$("#uc_btnAddCategory").prop("disabled", "disabled");
$("#uc_ddlCategorySelection").prop("disabled", "disabled");}
else
{
$("#uc_panel").prop("disabled", "");
$("#uc_btnAddCategory").prop("disabled", "");
$("#uc_ddlCategorySelection").prop("disabled", "");
}
1st time I select 'A' from the dropdown , usercontrol is disabled. 2nd time I select 'B' and click on BtnAdd, the usercontrol is getting disabled but it should be enabled