How do you force a limit total? Is this correct syntax? or am I missing something cause it's exceeding total number from my calculation.
switch (ddlVal) {
case RequestTypes["Sick"]:
case RequestTypes["Late"]:
case RequestTypes["Jury Duty"]:
tbEffectiveDate.disabled = false;
ddlTotalHoursEffect.disabled = true;
tbFromDate.disabled = true;
tbToDate.disabled = true;
cb.disabled = true;
cb.checked = false;
approvalRequired = false;
commentsRequired = false;
$("#spnDayOff").hide();
break;
case RequestTypes["Day Off"]:
tbEffectiveDate.disabled = false;
ddlTotalHoursEffect.disabled = true;
TotalHoursEffect <= 241 //THIS IS THE PART I WANT TO LIMIT DATA.
tbFromDate.disabled = true;
$("#spnDayOff").show();
break;
default:
break;