The below piece of code working but to simplify the code, how can we use the ternary operator ?
function fnOnChangeType() {
if (document.RequestHistoryForm.strMessageType.value=="All") {
document.getElementById("selectMessageView").disabled=false;
} else {
document.getElementById("selectMessageView").disabled=true;
}
}
function fnOnChangeView() {
if (document.RequestHistoryForm.strMessageView.value=="") {
document.getElementById("selectMessageType").disabled=false;
} else {
document.getElementById("selectMessageType").disabled=true;
}
}