This function check if the the DropDownList is disabled.
function CheckRowBeforeSaving() {
for (i = 0; i < document.forms[0].length; i++) {
if (e.id.indexOf("_ddlTask") != -1) {
var disabled = e.disabled;
alert(disabled);
}
}
}
I’ve noticed that when the DropDownList is enabled, the alert box appears with the message “False“. When the DropDownList is disabled, the alert message does not even appear. How to solve that problem?
EDIT
I’ve removed the condition but the result is still the same.
Thanks for helping
Remove the condition that only checks for disabled==false since is already disabled (disabled=true)