This code snippet checks whether the DropDownList is disabled or not.
function CheckRowBeforeSaving() {
for (i = 0; i < document.forms[0].length; i++) {
if (e.id.indexOf("_ddlTask") != -1) {
var disabled = e.disabled;
alert(disabled);
}
}
}
Upon testing, it was observed that when the DropDownList is enabled, the alert message displays "False". However, when the DropDownList is disabled, the alert doesn't show up at all. Any ideas on how to resolve this issue?
EDIT
Although I have removed the condition, the outcome remains unchanged.
Your assistance is greatly appreciated.